Ask about timer ID
#1

Is it normal if the timer ID is so huge, like 10000? i'm not sure because my server going freezed after i put this function in
Reply
#2

its milliseconds like 1000 = 1 Second
then

10000 = 10 Seconds so its not huge
Reply
#3

Not the interval, the id returned, like this code
Код:
new timerid = SetTimer("Timer", 1000, 0);
printf("The timerid = %d", timerid);
KillTimer(timerid);
and i do the code 1000 time, is it okay and not make the server memory over?
Reply
#4

Ur telling me you run that in a loop 1000 times
Reply
#5

not actually, i run a hunger system, so i need to do SetTimerEx and KillTimer so many times
Reply
#6

https://sampwiki.blast.hk/wiki/SetTimer

Note: Timer IDs are never used twice. You can use KillTimer() on a timer ID and it won't matter if it's running or not.


Everytime you start a time an unique id is assigned and if you have used 9999 timers it's normal.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)