Loop delay help (sv_restart for x seconds)
How to make loop delay in this code?
I want to run this loop in a 1 second delay. Code:
#include <amxmodx> |
Re: Loop delay help (sv_restart for x seconds)
http://www.amxmodx.org/funcwiki.php?go=func&id=253
set_task ( 1.0 , "loopfunc" , _, _, _, "a" , 60 ) In loopfunc function, use a static variable as your loop index. The above line will call loopfunc once a second 60 times. |
Re: Loop delay help (sv_restart for x seconds)
Quote:
|
Re: Loop delay help (sv_restart for x seconds)
Not sure exactly what your trying to do but this will print out time in seconds up to 60.
PHP Code:
|
Re: Loop delay help (sv_restart for x seconds)
Thanks a lot!
+karma |
| All times are GMT -4. The time now is 15:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.