10.08.2013, 21:12
Hello,
I am quite new at scripting and strings are new for me. I am wondering why it says [playerid] is an undefined symbol, when i'm using the same if line at other parts of the script, and it works just fine.
I don't want anyone to script it for me, but I would like to understand what's wrong
Thanks in advance!
I am quite new at scripting and strings are new for me. I am wondering why it says [playerid] is an undefined symbol, when i'm using the same if line at other parts of the script, and it works just fine.
pawn Код:
new gTeam[MAX_PLAYERS]; //At top of the script
forward SendGroveMessage(color, string[]);
public SendGroveMessage(color, string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(gTeam[playerid] == TEAM_GROVE) // LINE 468
{
SendClientMessage(i, color, string);
}
}
}
}
pawn Код:
C:\Users\admin\TDM-server\gamemodes\ZTDM.pwn(468) : error 017: undefined symbol "playerid"
Thanks in advance!