Automatic Gates To Team
#1

hey all today i have a stupid problem im trying to do gates to one team and i use this

public CheckGate()
{
for(new i = 0; i < GetMaxPlayers(); i++)
if (gTeam[playerid] == TEAM_COP)
{
if(PlayerToPoint(10.0, playerid, 1937.5629882813, 2152.091796875, 11.5703125) && OpenGate[i] == 0)
{
MoveObject(c_gate, 1937.5629882813, 2152.091796875, -11.5703125, 1);
OpenGate[i] = 1;
}
else if(!PlayerToPoint(10.0, playerid, 1937.5629882813, 2152.091796875, 11.5703125) && OpenGate[i] == 1)
{
MoveObject(c_gate, 1937.5629882813, 2152.091796875, 11.5703125, 1);
OpenGate[i] = 0;
}
}
}


but when i put copiling its says this errors
C:\Users\D4RK_T34M\Desktop\Gates.pwn(2046) : error 017: undefined symbol "playerid"
C:\Users\D4RK_T34M\Desktop\Gates.pwn(204 : error 017: undefined symbol "playerid"
C:\Users\D4RK_T34M\Desktop|Gates.pwn(2053) : error 017: undefined symbol "playerid"

dont worry about the lines bcs i have more things
Reply


Messages In This Thread
Automatic Gates To Team - by SlashPT - 04.10.2009, 18:36
Re: Automatic Gates To Team - by Correlli - 04.10.2009, 18:37
Re: Automatic Gates To Team - by SlashPT - 04.10.2009, 18:40
Re: Automatic Gates To Team - by [CK]Steel - 04.10.2009, 18:41
Re: Automatic Gates To Team - by SlashPT - 04.10.2009, 18:42
Re: Automatic Gates To Team - by DizeL-ZR- - 04.10.2009, 18:45
Re: Automatic Gates To Team - by SlashPT - 04.10.2009, 18:49
Re: Automatic Gates To Team - by Correlli - 04.10.2009, 18:51
Re: Automatic Gates To Team - by SlashPT - 04.10.2009, 18:54

Forum Jump:


Users browsing this thread: 3 Guest(s)