SA-MP Forums Archive
Error 076: syntax error in the expression, or invalid function call. - 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 076: syntax error in the expression, or invalid function call. (/showthread.php?tid=577354)



Error 076: syntax error in the expression, or invalid function call. - nezo2001 - 10.06.2015

I don't unserstand what is the error here:
PHP код:
KillTimer(CaptureTime); 
And for the full code:
PHP код:
public OnPlayerUpdate(playerid)
{
    if(
capturing[playerid] == true)
    {
        for(new 
0sizeof(ZoneInfo);i++)
        {
            if(
IsPlayerIsNotInZone(playeridi))
            {
                
capturing[playerid] = false;
                
KillTimer(CaptureTime);
                
captureTimer[playerid] = 180;
                
SendClientMessage(playeridCOLOR_RED"Capture Failed!");
            }
        }
    }
    return 
1;

?!


Re: Error 076: syntax error in the expression, or invalid function call. - SickAttack - 11.06.2015

Why do you even have a timer, if you're using that on "OnPlayerUpdate(playerid)"?