25.03.2017, 19:18
Lets say I have something like this:
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 ?
PHP Code:
new TimerID = SetTimer("BlaBla", 1000, 0);
BlaBla();
BlaBla()
{
if(TimerID) // If the timer ID is still stored in the variable > the timer wasnt executed yet
{
KillTimer(TimerID);
// blablabla
}
}
When the function of the Timer is called (Timer is finished)
The Timer ID is still stored in the variable ?