14.02.2010, 20:50
The first SetTimerEx(...) lags. It executes much more time than it was supposed to. When another timer is running it works normally.
I did simple fix, but I think it should be fixed internally.
After running it, timers counts further more accurate than first ran timer, like it worked in SA-MP 0.2 normally.
I did simple fix, but I think it should be fixed internally.
Code:
#include a_samp new gIdleTimer; public OnFilterScriptInit() { gIdleTimer = SetTimer("StayIdle",3000,false); return 1; } forward StayIdle(); public StayIdle() { KillTimer(gIdleTimer); gIdleTimer = SetTimer("StayIdle",3000,false); } public OnFilterScriptExit() { KillTimer(gIdleTimer); return 1; }