y_timers help !
#1

Hi! I'm using y_timers to make speedcameras ingame keep updated.

so here is some code i added to the script:

Код:
Timer:ServerHeartbeat[1000]()
{
	foreach(Player, i)
	{
		if(SpeedCamera[i] > 0)
		{
			if(SpeedCamera[i] <= 0)
			{
				SpeedCamera[i] = 0;
			}
			else
			{
				SpeedCamera[i] -= 1;
			}
		}
	}
}
And got those errors:
Код:
(41590) : error 010: invalid function or declaration
(41592) : error 010: invalid function or declaration
(41594) : error 010: invalid function or declaration
(41596) : error 010: invalid function or declaration
(41600) : error 010: invalid function or declaration
the error lines are related to the script i showed you above.

Should there be a return value? I don't understand those errors, please help me! thanks.
Reply


Messages In This Thread
y_timers help ! - by maximthepain - 09.11.2013, 07:56
Re: y_timers help ! - by Patrick - 09.11.2013, 08:04
Re: y_timers help ! - by maximthepain - 09.11.2013, 08:15
Re: y_timers help ! - by Patrick - 09.11.2013, 08:37

Forum Jump:


Users browsing this thread: 1 Guest(s)