04.06.2011, 04:54
You needed to use "i" as Kin said. Also I can bet you count the opening brackets and then put the same number of closing brackets, indentation matters. Anyway here it is:
EDIT: [L3th4l] beat me :P
pawn Код:
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);
}
}
}
}