[solved]TIMER
#9

Quote:
Originally Posted by mansonh
No, well you can but there is no point.

Countdown = SetTimer("CountDownTimer", 999, false);

Countdown is now the id of the Timer. which is set to run for 999 ms.
So after 999ms the Timer (which has id Countdown) will call the function given
CountDownTimer

So the first variable of SetTimer is the function to call, which is called after the ms given in the second param which in this case is 999.

If you only want the timer to run once, then the third variable should be false, then the timer will stop once it has called CountDownTimer.
So in this case there is no need to kill the timer, it automatically dies.

However if you want to repeatedly call a function you set the third variable to true.


Does that make more sense?
it could be better if you give me the script. Sry
Reply


Messages In This Thread
[solved]TIMER - by deather - 24.01.2010, 15:09
Re: Timer - by Striker_Moe - 24.01.2010, 15:14
Re: Timer - by deather - 24.01.2010, 15:19
Re: Timer - by mansonh - 24.01.2010, 15:29
Re: Timer - by deather - 24.01.2010, 16:01
Re: Timer - by Niixie - 24.01.2010, 16:05
Re: Timer - by deather - 24.01.2010, 16:11
Re: Timer - by mansonh - 24.01.2010, 16:15
Re: Timer - by deather - 24.01.2010, 16:19
Re: Timer - by mansonh - 24.01.2010, 16:52

Forum Jump:


Users browsing this thread: 3 Guest(s)