SpriTe_ Posted May 18, 2013 Posted May 18, 2013 Salutare sa-mp.ro, am nevoie de ajutor deci la toate telepotul asta:[pawn]CMD:zombies( playerid, params[ ] ){ DMTele( playerid, "Zombies VS Humans", "Zombies VS Humans ~b~/zombies", -3167.1016, 2494.0969, 163.6744, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100 ); ZH[ playerid ] = 1; TextDrawShowForPlayer( playerid, ZH1 ); TextDrawShowForPlayer( playerid, ZH2 ); SpawnInDM[ playerid ] = "/zombies";return 1; }[/pawn] Am eroarea asta:[pawn]error 006: must be assigned to an array[/pawn]De ce imi da asta??? Help :o
[Funky]Anakin Posted May 18, 2013 Posted May 18, 2013 CMD:zombies( playerid, params[ ] ){DMTele( playerid, "Zombies VS Humans", "Zombies VS Humans ~b~/zombies", -3167.1016, 2494.0969, 163.6744, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100 ); ZH[ playerid ] = 1; TextDrawShowForPlayer( playerid, ZH1 ); TextDrawShowForPlayer( playerid, ZH2 ); SpawnInDM[ playerid ] = "/zombies";return 1; }Incearca asa sau asa CMD:zombies( playerid, params[ ] ) return DMTele( playerid, "Zombies VS Humans", "Zombies VS Humans ~b~/zombies", -3167.1016, 2494.0969, 163.6744, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100 ), ZH[ playerid ] = 1, TextDrawShowForPlayer( playerid, ZH1 ), TextDrawShowForPlayer( playerid, ZH2 ), SpawnInDM[ playerid ] = "/zombies";
SpriTe_ Posted May 18, 2013 Author Posted May 18, 2013 Anakin" post="143168" timestamp="1368901363"]CMD:zombies( playerid, params[ ] ){DMTele( playerid, "Zombies VS Humans", "Zombies VS Humans ~b~/zombies", -3167.1016, 2494.0969, 163.6744, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100 ); ZH[ playerid ] = 1; TextDrawShowForPlayer( playerid, ZH1 ); TextDrawShowForPlayer( playerid, ZH2 ); SpawnInDM[ playerid ] = "/zombies";return 1; }Incearca asa sau asa CMD:zombies( playerid, params[ ] ) return DMTele( playerid, "Zombies VS Humans", "Zombies VS Humans ~b~/zombies", -3167.1016, 2494.0969, 163.6744, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100 ), ZH[ playerid ] = 1, TextDrawShowForPlayer( playerid, ZH1 ), TextDrawShowForPlayer( playerid, ZH2 ), SpawnInDM[ playerid ] = "/zombies";Am pus primul, si merge dar al 2 nu a mers, dar acum dupa ce am pus in 1 mod, am detectat problema:[pawn]CMD:zombies( playerid, params[ ] ){DMTele( playerid, "Zombies VS Humans", "Zombies VS Humans ~b~/zombies", -3167.1016, 2494.0969, 163.6744, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100 ); ZH[ playerid ] = 1; TextDrawShowForPlayer( playerid, ZH1 ); TextDrawShowForPlayer( playerid, ZH2 ); SpawnInDM[ playerid ] = "/zombies"; //Aici e eroareareturn 1; }[/pawn]Iata eroarea:[pawn]error 006: must be assigned to an array[/pawn]De ce oare apare?
[Funky]Anakin Posted May 18, 2013 Posted May 18, 2013 Incearca sa scrii doar "zombies" .Cum ai definit SpawnInDM ? new SpawnInDM[ MAX_PLAYERS ] ? Dar la ce foloseste SpawnInDM[ playerid ] = "/zombies" ? :S Nu are rost incearca sa stergi xDD
SpriTe_ Posted May 18, 2013 Author Posted May 18, 2013 Anakin" post="143173" timestamp="1368902103"]Incearca sa scrii doar "zombies" .Cum ai definit SpawnInDM ? new SpawnInDM[ MAX_PLAYERS ] ? Dar la ce foloseste SpawnInDM[ playerid ] = "/zombies" ? :S Nu are rost incearca sa stergi xDDGata, am rezolvat, mersi Allex, am sters aia, m-am uitat mai bine si chiar vaeai dreptate ca n-are sens sa o tin acolo...
Question
SpriTe_
Salutare sa-mp.ro, am nevoie de ajutor deci la toate telepotul asta:
[pawn]
CMD:zombies( playerid, params[ ] ){ DMTele( playerid, "Zombies VS Humans", "Zombies VS Humans ~b~/zombies", -3167.1016, 2494.0969, 163.6744, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100 ); ZH[ playerid ] = 1; TextDrawShowForPlayer( playerid, ZH1 ); TextDrawShowForPlayer( playerid, ZH2 ); SpawnInDM[ playerid ] = "/zombies";return 1; }
[/pawn]
Am eroarea asta:
[pawn]
error 006: must be assigned to an array
[/pawn]
De ce imi da asta??? Help :o
4 answers to this question
Recommended Posts