Jump to content

Question

Posted

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

Posted

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";

idiots.png
Posted

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 eroarea

return 1;

}

[/pawn]

Iata eroarea:

[pawn]

error 006: must be assigned to an array

[/pawn]

De ce oare apare?

Posted

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

idiots.png
Posted

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 xDD

Gata, am rezolvat, mersi Allex, am sters aia, m-am uitat mai bine si chiar vaeai dreptate ca n-are sens sa o tin acolo... :D

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.