I simple cant get the codes working... - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I simple cant get the codes working... (
/showthread.php?tid=144531)
I simple cant get the codes working... -
Lorenc_ - 27.04.2010
Hello everyone i had this under gamemodeinit...
Код:
if(Derby[playerid] == 1)
{
AddPlayerClass(104, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
}
if(DeathMatch[playerid] == 1)
{
AddPlayerClass(105, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(104, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
}
And i got 2 errors saying:
Код:
error 017: undefined symbol "playerid"
so i tried to define it and put
and there were no errors.. so i went to test on my server and the skins wouldnt show up on each mode..... just cj would..
anyone know how to fix this

?
Thanks
LOrenc
Re: I simple cant get the codes working... -
Virtual1ty - 27.04.2010
Callback
OnGameModeInit() has no playerid argument, use
for loop.
pawn Код:
for(new i; i < MAX_PLAYERS; i++)
Re: I simple cant get the codes working... -
Lorenc_ - 27.04.2010
ohh thanks for forgot about the loops