Timed function call
Is it possible to have a function executed at a given time interval ? I want to execute some code every 20 seconds, it's non event stuff.
|
Re: Timed function call
|
Re: Timed function call
in plugin_init()
add: set_task(20.0, "functiontoexecute", 0, _, 1 , "b"); Change functiontoexecute to whatever the function is that you want to execute every 20 seconds. |
Re: Timed function call
perfect
|
Re: Timed function call
Quote:
Code:
set_task(20.0, "functiontoexecute", _, _, _, "b"); |
| All times are GMT -4. The time now is 05:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.