24.08.2009, 13:31
Does anybody why it gives these Errors?
ERRORS:
Code:
Does anybody know??
ERRORS:
Code:
(329) : error 017: undefined symbol "playerid" (337) : error 017: undefined symbol "playerid"
pawn Code:
public CheckGate()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(!IsPlayerConnected(i)) continue;
if(PlayerToPoint(10.0, i, 1543.379150, -1627.431763, 16.002745) && OpenGate[i] == 0)
{
if(gTeam[playerid] == 4) //>>>>ERROR 1<<<<
{
MoveObject(P_gate, 1543.041870, -1621.382202, 15.827747,5.00);
OpenGate[i] = 1;
}
}
else if(!PlayerToPoint(10.0, i, 1543.379150, -1627.431763, 16.002745) && OpenGate[i] == 1)
{
if(gTeam[playerid] == 4)//>>>>ERROR 1<<<<
{
MoveObject(P_gate, 1543.041870, -1621.382202, 15.827747,5.00);
OpenGate[i] = 0;
}
}
}
}
