SA-MP Forums Archive
What's the error? - 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: What's the error? (/showthread.php?tid=431849)



What's the error? - LeeXian99 - 20.04.2013

pawn Код:
CMD:stuntbonus(playerid,params[])
{
    if(EnableStuntBonusForPlayer(playerid, 0));
    {
        EnableStuntBonusForPlayer(playerid, 1);
        SendClientMessage(playerid, yellow, "Stunt bonus has been {ffffff}enabled{ffff00}.");
    }
    if(EnableStuntBonusForPlayer(playerid, 1));
    {
        EnableStuntBonusForPlayer(playerid, 1);
        SendClientMessage(playerid, red, "Stunt bonus has been {ffffff}disabled{ff0000}.");
    }
    return 1;
}
Код:
C:\Documents and Settings\User\Desktop\SAMP 0.3X Scripting\gamemodes\stuntproject.pwn(128) : error 036: empty statement
C:\Documents and Settings\User\Desktop\SAMP 0.3X Scripting\gamemodes\stuntproject.pwn(133) : error 036: empty statement
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
How to fix it?


Respuesta: What's the error? - Parka - 20.04.2013

pawn Код:
CMD:stuntbonus(playerid,params[])
{
    if(EnableStuntBonusForPlayer(playerid, 0))
    {
        EnableStuntBonusForPlayer(playerid, 1);
        SendClientMessage(playerid, yellow, "Stunt bonus has been {ffffff}enabled{ffff00}.");
    }
    if(EnableStuntBonusForPlayer(playerid, 1))
    {
        EnableStuntBonusForPlayer(playerid, 1);
        SendClientMessage(playerid, red, "Stunt bonus has been {ffffff}disabled{ff0000}.");
    }
    return 1;
}



Re: What's the error? - LeeXian99 - 20.04.2013

nvm, fixed by myself.


Re: What's the error? - Giroud12 - 20.04.2013

which line error?