Timer ID stored in a variable gets wiped when timer hits ?
#1

Lets say I have something like this:

PHP Code:
new TimerID SetTimer("BlaBla"10000);
BlaBla();
BlaBla()
{
if(
TimerID// If the timer ID is still stored in the variable > the timer wasnt executed yet
{
KillTimer(TimerID);
// blablabla
}

If I call a timer, and store it's ID in a variable
When the function of the Timer is called (Timer is finished)
The Timer ID is still stored in the variable ?
Reply
#2

Hello!

When the timer is finish you needn't kill the timer because it is still killed.
Reply
#3

Nevermind Solved
I just switched the Timer ID variable in a function local variable
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)