compound statement not closed at the end of file?
#8

As was stated, the number of opening braces does not equal to the number of closing braces. You had one or two missing. You would have realised this if you properly indented and would've saved u time.

Anyways here it is:

pawn Код:
if(!strcmp(cmdtext,"/agate",true))
    {
        if(IsPlayerAdmin(playerid))
        {
            MoveObject(MG3,2923.7536621094, -716.33807373047, 2.148454666138,2);
            MoveObject(MG4,2923.6889648438, -724.21716308594, 2.148454666138,2);
            SetTimer("aGate1", 5000, 0);
            SendClientMessage(playerid, COLOR_WHITE, "Welcome");
        }
        else
        {
            SendClientMessage(playerid, COLOR_WHITE, "Your not an admin");
            return 1;
        }
    }
    if(!strcmp(cmdtext,"/agate2",true))
    {
        if(IsPlayerAdmin(playerid))
        {
            MoveObject(MG,3157.6267089844, -716.3544921875, 2.148454666138,2);
            MoveObject(MG2,3157.6516113281, -724.22485351563, 2.148454666138,2);
            SetTimer("aGate2", 5000, 0);
            SendClientMessage(playerid, COLOR_WHITE, "Welcome to the admin house.");
        }
        else
        {
            SendClientMessage(playerid, COLOR_WHITE, "Your not an admin.");
            return 1;
        }
    }
    return 0; // remove this line and the next line if this is not the end of OnPlayerCommandText.
 }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)