C:\Users\Family\Desktop\UrbanRolePlay 0.3c\gamemodes\larp.pwn(79225) : error 017: undefined symbol "playerid" C:\Users\Family\Desktop\UrbanRolePlay 0.3c\gamemodes\larp.pwn(79247) : error 017: undefined symbol "playerid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
public FBIRightGatesOpen() { for(new i=0; i<MAX_PLAYERS; i++) { if(FBIRightGateOpen == 0) { if(PlayerInfo[playerid][pAdmin] >= 6) { MoveObject(FBIRightGate, -1781.65063477,971.39666748,31.50776672, 5); FBIRightGateOpen =1; SetTimer("FBIRightGatesClose",7000,0); } } } } public FBILeftGatesOpen() { for(new i=0; i<MAX_PLAYERS; i++) { if(FBILeftGateOpen == 0) { if(PlayerInfo[playerid][pAdmin] >= 6) { MoveObject(FBILeftGate, -1781.49548340,996.09625244,31.50776672, 5); FBILeftGateOpen =1; SetTimer("FBILeftGatesClose",7000,0); } } } } |
public FBIRightGatesOpen()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(FBIRightGateOpen == 0)
{
if(PlayerInfo[i][pAdmin] >= 6)
{
MoveObject(FBIRightGate, -1781.65063477,971.39666748,31.50776672, 5);
FBIRightGateOpen =1;
SetTimer("FBIRightGatesClose",7000,0);
}
}
}
}
public FBILeftGatesOpen()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(FBILeftGateOpen == 0)
{
if(PlayerInfo[i][pAdmin] >= 6)
{
MoveObject(FBILeftGate, -1781.49548340,996.09625244,31.50776672, 5);
FBILeftGateOpen =1;
SetTimer("FBILeftGatesClose",7000,0);
}
}
}
}
use i instead. |
public FBIRightGatesOpen()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(FBIRightGateOpen == 0)
{
if(PlayerInfo[i][pAdmin] >= 6)
{
MoveObject(FBIRightGate, -1781.65063477,971.39666748,31.50776672, 5);
FBIRightGateOpen =1;
SetTimer("FBIRightGatesClose",7000,0);
}
}
}
}
public FBILeftGatesOpen()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(FBILeftGateOpen == 0)
{
if(PlayerInfo[i][pAdmin] >= 6)
{
MoveObject(FBILeftGate, -1781.49548340,996.09625244,31.50776672, 5);
FBILeftGateOpen =1;
SetTimer("FBILeftGatesClose",7000,0);
}
}
}
}