SA-MP Forums Archive
Timer IDs Limit - 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: Timer IDs Limit (/showthread.php?tid=662992)



Timer IDs Limit - robokopas112 - 18.01.2019

In "wiki.sa-mp.com", regarding function "SetTimerEx()", it is stated: "Timer IDs start at 1 and are never reused". Suppose we have a server which creates 100 timers per second. How long will it take till server run out of timer IDs and what then will happen?


Re: Timer IDs Limit - robokopas112 - 18.01.2019

Quote:
Originally Posted by ******
Посмотреть сообщение
At 100 timers per second, it will take 497 days to wrap around. Then there are no checks so they will be reused. Even 0 will be used, despite being returned for invalid/unused timers (something I wanted to fix in fixes.inc).
Thank you!