SA-MP Forums Archive
Error 036: empty state - 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: Error 036: empty state (/showthread.php?tid=444113)



Error 036: empty state - DarkPower010 - 15.06.2013

Sorry if i do the wrong thing on the script..


Im trying to make an autofix script.. the timer is bugged and it does not want to time

pawn Код:
public Repair(playerid)
{
    if(AutoFix[playerid] == 1) af_timer = SetTimer("Repair", 500, true);
    if(AutoFix[playerid] == 0) return KillTimer(af_timer);
    {
        if(!IsPlayerConnected(playerid)); //ERROR 1
        if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER ); //ERROR 2
        SetVehicleHealth(GetPlayerVehicleID(playerid), 1000);
        RepairVehicle(GetPlayerVehicleID(playerid));
    }
    return 1;
}
(ERROR 1) : error 036: empty statement
(ERROR 2) : error 036: empty statement


Re: Error 036: empty state - JaKe Elite - 15.06.2013

pawn Код:
public Repair(playerid)
{
    if(AutoFix[playerid] == 1) af_timer = SetTimer("Repair", 500, true);
    if(AutoFix[playerid] == 0) return KillTimer(af_timer);
    {
        if(IsPlayerConnected(playerid))
        {
            if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
            {
                SetVehicleHealth(GetPlayerVehicleID(playerid), 1000);
                RepairVehicle(GetPlayerVehicleID(playerid));
            }
        }
    }
    return 1;
}



Re: Error 036: empty state - DarkPower010 - 15.06.2013

THANKS!