Help I get THis error
#8

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:

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);
            }
        }
    }
}
EDIT: [L3th4l] beat me :P
Reply


Messages In This Thread
PLEAS HELP PLEAS I HAVE TROUBLE WITH AUTOGATES - by -matt- - 04.06.2011, 04:44
Re: Help I get THis error - by Tee - 04.06.2011, 04:48
Re: Help I get THis error - by Scenario - 04.06.2011, 04:49
Re: Help I get THis error - by -matt- - 04.06.2011, 04:50
Re: Help I get THis error - by kin - 04.06.2011, 04:51
Re: Help I get THis error - by [L3th4l] - 04.06.2011, 04:52
Re: Help I get THis error - by -matt- - 04.06.2011, 04:52
Re: Help I get THis error - by Tee - 04.06.2011, 04:54
Re: Help I get THis error - by -matt- - 04.06.2011, 04:54
Re: Help I get THis error - by -matt- - 04.06.2011, 05:03

Forum Jump:


Users browsing this thread: 1 Guest(s)