SA-MP Forums Archive
Going mad - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Going mad (/showthread.php?tid=316241)



Going mad - cs_waller - 05.02.2012

Hello,I'm make command for join event but I have one error.

pawn Код:
error 036: empty statement

Here is the code.

pawn Код:
else if(event[0] == 2);

            SendClientMessage(playerid, COLOR_ADMIN, "Çàïèñâàíåòî çà åâåíòà å ñâúðøèëî.");
            }



Re: Gonna mad - Ld Est Ld - 05.02.2012

pawn Код:
else if(event[0] == 2)
           {

            SendClientMessage(playerid, COLOR_ADMIN, "Записването за евента е свършило.");
            }
Should Fix it"!


Re: Gonna mad - [ABK]Antonio - 05.02.2012

pawn Код:
else if(event[0] == 2)
{
    SendClientMessage(playerid, COLOR_ADMIN, "Записването за евента е свършило.");
}



Re: Going mad - cs_waller - 05.02.2012

26 errors :X Here is the full command.


pawn Код:
if(strcmp(cmd, "/joinevent", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(event[0] == 1)
            {
                if (GetPlayerState(playerid) != 1) SendClientMessage(playerid, COLOR_ADMIN, "Òè ñå òåëåïîðòèðà íà åâåíòà óñïåøío");
                else
                {
                    SetPlayerColor(playerid,0x18E76BFF);
                    SetPlayerPos(playerid, TeleportEvent[0],TeleportEvent[1],TeleportEvent[2]);
                    SetPlayerFacingAngle(playerid, TeleportEvent[3]);
                    SetPlayerInterior(playerid,Interior);
                    SetPlayerVirtualWorld(playerid,VW);
                    SendClientMessage(playerid, COLOR_ADMIN, "Òè ñå òåëåïîðòèðà íà åâåíòà óñïåøío");

                }
            {
            else if(event[0] == 2);
            {

            SendClientMessage(playerid, COLOR_ADMIN, "Çàïèñâàíåòî çà åâåíòà å ñâúðøèëî.");
            }
        }
        return 1;
    }
    }



Re: Going mad - [ABK]Antonio - 05.02.2012

well...you have an extra closing bracket at the end...you also didn't remove the semicolon ( like i said lol