SA-MP Forums Archive
forward 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: forward error (/showthread.php?tid=651083)



forward error - MarioKamani - 13.03.2018

Код:
forward Heartbeat();
public Heartbeat()
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
	    if(JustReported[i] > 0)
		JustReported--; // here's the error.
	}
	return 1;
}



Re: forward error - Inn0cent - 13.03.2018

It should be like this,

JustReported[i]--;


Re: forward error - MarioKamani - 13.03.2018

thanks yo