SA-MP Forums Archive
help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help (/showthread.php?tid=552549)



help - mehdi171996 - 25.12.2014

hi im facing this probleme in my script
: error 001: expected token: ";", but found "-identifier-"

new PlayerName[MAX_PLAYER_NAME];
new rand = random(sizeof(SDMSpawns))
error here ----->GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(InSDM[playerid] == 0) {
InSDM[playerid] = 1;

plz help


Re: help - 1fret - 25.12.2014

pawn Код:
new rand = random(sizeof(SDMSpawns));
You missed the semi-colon


Re : help - mehdi171996 - 25.12.2014

ty it works
+Rep
[Solved]