Making a "wait" function
Is there any way to make a function that will pause the code for a specified amount of time?
For example: PHP Code:
PHP Code:
When I put an "infinite" loop in c++ to count it goes on forever so I thought it might work here too :D Is there any way to make this? Like, for example, call a function that needs 0.1s to execute 20 times for a 2 second wait? :D |
Re: Making a "wait" function
set_task
|
Re: Making a "wait" function
Quote:
PHP Code:
I know that there is set_task but I want to know if it's possible to do it like this. |
Re: Making a "wait" function
http://www.amxmodx.org/funcwiki.php?...task&go=search set_task is the timer.
|
Re: Making a "wait" function
set_task calls another function. Entity thinks call another function. You cannot add a pause into a current function without a while loop.
|
Re: Making a "wait" function
Quote:
|
Re: Making a "wait" function
PHP Code:
|
Re: Making a "wait" function
Quote:
|
Re: Making a "wait" function
Quote:
|
Re: Making a "wait" function
Quote:
|
| All times are GMT -4. The time now is 15:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.