SetTimer problems - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetTimer problems (
/showthread.php?tid=193829)
SetTimer problems -
RSX - 27.11.2010
I want a 5ms timer (every 5ms), but by passing values like this:
SetTimerEx("YouWillKnow", SMT, 0, "iifff", playerid, vehicleid, Xp, Yp, Zp);
In each call end, but i get quite jittery result. Possibly from PC rendering resulting in slower calculations (note, if even 1ms counts already as 1/5).
So what should I do?
Make it a "static" timer which loops, or call each time?
And I guess for performance in every 5ms I'm going to have to make global arrays? (Reason for not to - I hate global arrays ... note for you, I hate server properties and PVars in unneeded context even more ;P actually the same for CVars, static values, 4 byte variables)
Re: SetTimer problems -
Cypog - 27.11.2010
I don't know exactly what you mean, can you give me an example?