gTeam[playerid] - undefined symbol?
#1

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.

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"
I don't want anyone to script it for me, but I would like to understand what's wrong

Thanks in advance!
Reply


Messages In This Thread
gTeam[playerid] - undefined symbol? - by zaider - 10.08.2013, 21:12
Respuesta: gTeam[playerid] - undefined symbol? - by xeon_inside - 10.08.2013, 21:15
Re: gTeam[playerid] - undefined symbol? - by zaider - 10.08.2013, 21:16

Forum Jump:


Users browsing this thread: 3 Guest(s)