Unmatched Closing Brace [HELP]
#7

Ok i do that already, like the RULE say --> Whenever you use curly brackets, indent the next snippet by 1.

Didn't I?

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    {
        if(strcmp("/vehokreni", cmdtext, true) == 0)
        {
            new currentveh;
            new Float:angle;
            currentveh = GetPlayerVehicleID(playerid);
            GetVehicleZAngle(currentveh, angle);
            SetVehicleZAngle(currentveh, angle);
            SendClientMessage(playerid, 0x33CCFFAA, "Preokrenuo si vozilo.");
            return 1;
        }
       
        if (!strcmp(cmdtext,"/vehpopravi"))
        {
            if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "Nisi u vozilu!");
            RepairVehicle(GetPlayerVehicleID(playerid));
            SendClientMessage(playerid, 0x33CCFFAA, "Popravio si vozilo!");
            return 1;
        }
       
        if(!strcmp(cmdtext, "/kreirajv", true))
        {
            if(!strcmp(cmdtext, "/kreirajv", true))
            {
                ShowPlayerDialog(playerid, vmenu, DIALOG_STYLE_LIST, "Spawn Vozila", "Sultan \nInfernus \nMaverick \nNRG-500", "Spawn", "Cancel");
                return 1;
            }
        }
       
        if (strcmp("/taxio", cmdtext, true, 10) == 0)
        {
            MoveObject(object,1269.91210938,-1842.36523438,15.17082977, 2.00);
            SetTimer("close", 7000, 0);//gate will be  closed for 7 seconds
            SendClientMessage(playerid,0x33CCFFAA,"Kapija se otvara i za 7 sekundi ce biti automatski zatvorena.");
            return 1;}
        }
    return SendClientMessage(playerid, 0x999999AA, "WTF: Upisao si nepoznatu komandu.");
}
I read the instructions from Here--> https://sampforum.blast.hk/showthread.php?pid=1181561#pid1181561
Reply


Messages In This Thread
Unmatched Closing Brace [HELP] - by ApachE - 01.05.2011, 12:00
Re: Unmatched Closing Brace [HELP] - by Max_Coldheart - 01.05.2011, 12:10
Re: Unmatched Closing Brace [HELP] - by ApachE - 01.05.2011, 12:16
Re: Unmatched Closing Brace [HELP] - by ApachE - 01.05.2011, 12:26
Re: Unmatched Closing Brace [HELP] - by ApachE - 01.05.2011, 12:39
Re: Unmatched Closing Brace [HELP] - by ApachE - 01.05.2011, 12:43
Re: Unmatched Closing Brace [HELP] - by ApachE - 01.05.2011, 13:08
Re: Unmatched Closing Brace [HELP] - by SchurmanCQC - 01.05.2011, 13:11
Re: Unmatched Closing Brace [HELP] - by ApachE - 01.05.2011, 13:15
Re: Unmatched Closing Brace [HELP] - by SchurmanCQC - 01.05.2011, 13:19

Forum Jump:


Users browsing this thread: 1 Guest(s)