error compile - 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: error compile (
/showthread.php?tid=136741)
error compile -
Brian_Furios - 26.03.2010
i have this error
pawn Код:
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(11561) : error 017: undefined symbol "PLAYERS"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
at line i have this script:
pawn Код:
for(new i = 0; i < PLAYERS; i++)
complete script
pawn Код:
public SendWTMessage(channel, color, string[])
{
for(new i = 0; i < PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pWTc] == channel)
{
SendClientMessage(i, color, string);
}
}
}
}
Re: error compile -
Headshot1108 - 26.03.2010
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
instead of
pawn Код:
for(new i = 0; i < PLAYERS; i++)
Re: error compile -
Brian_Furios - 26.03.2010
thanks man now it work