09.11.2013, 07:56
Hi! I'm using y_timers to make speedcameras ingame keep updated.
so here is some code i added to the script:
And got those errors:
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.
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; } } } }
Код:
(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
Should there be a return value? I don't understand those errors, please help me! thanks.
