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



syntax error in the expression, or invalid function call - TheNerka - 04.09.2014

Код:
forward MuteTimer();
public MuteTimer()
{
    for(new i = 0; i < MAX_PLAYERS; i ++) 
    {
        if(gIsPlayerLoggedIn[i])
		{
            if(PlayerData[i][MuteTimer] > 1) // 1700
            {
                PlayerData[i][MuteTimer] --; // 1702
            }
        }
    }
    return 1;
}
Код:
(1700) : error 076: syntax error in the expression, or invalid function call
(1702) : error 076: syntax error in the expression, or invalid function call
How to fix this?


Re: syntax error in the expression, or invalid function call - TheNerka - 04.09.2014

....


Re: syntax error in the expression, or invalid function call - HyDrAtIc - 04.09.2014

Don't bump the thread after 30 mins....

I don't know about this, but you could've mis-wrote it, are you is it typed correctly?


Re: syntax error in the expression, or invalid function call - MasonSFW - 04.09.2014

Код:
forward MuteTimer();
public MuteTimer()
{
    for(new i = 0; i < MAX_PLAYERS; i ++) 
    {
        if(gIsPlayerLoggedIn[i])
		{
            if(PlayerData[i][MuteTimer] > 1) // 1700
            {
                PlayerData[i][MuteTimer] == --; // 1702
            }
        }
    }
    return 1;
}
this


Re: syntax error in the expression, or invalid function call - TheNerka - 04.09.2014

Fixed, my enum MuteTime, not MuteTimer