How to make a delay?
Hey! I want to know how I can make a delay for 2 seconds when calling a function. I has tried to make a task but I cant get it to work with my value.
PHP Code:
Hope I have posted in the right forum. |
Re: How to make a delay?
Try to do a set_task with params id+1+szItem ?
Then you can do : id -= (1+szItem) ; szItem -= (id+1) ; number -= (id+szItem) I don't know if that work. |
Re: How to make a delay?
I think you can do it here too http://forums.alliedmods.net/showthread.php?t=162085
look at fysiks last post smth like this PHP Code:
|
Re: How to make a delay?
Quote:
|
Re: How to make a delay?
[QUOTE=RelaxMazteR;1515523]Hey! I want to know how I can make a delay for 2 seconds when calling a function. I has tried to make a task but I cant get it to work with my value.
PHP Code:
Quote:
|
Re: How to make a delay?
Quote:
1. Functions called by set_task() must be public. 2. The load() function params are in the wrong order. Data is passed first followed by task-id when called by set_task. 3. Use sizeof() instead of strlen(), and charsmax() instead of size - 1. 4. Use formatex() when you are not passing the destination string as a param. 5. If you need to pass multiple params through set_task(), you must pack them all into the same array. You needing only to pass a number and string is easy since you can use the first cell to store the number and the remainder for the string. You can pack a lot of different data if needed, though. 6. You are calling load() with 3 params while it only has 2 in the declaration. Try this, let me know if you need any adjustments. PHP Code:
|
| All times are GMT -4. The time now is 01:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.