Delay within a function?
I am trying to do a three second delay, but I do not want to use set_task because I am handling two id's...
So I tried Code:
I don't think I need the break code, but anyways I think that will give me a 3 second delay, but the question is will it lag the server much? In my experiance, 10000 counts is approximate to 1 second. |
Why not do this?
Code:
Code:
|
Wow. Stop posting here and go code for nasa.
|
:lol: Yeah, because that's rocket science! :lol:
|
Quote:
|
Quote:
but wouldnt it be set_task(3.0, "myfunc", pstr, _ , 2); because pstr is the id? and the _ means skip right? and in this: set_task(3.0, "myfunc", _, pstr, 2) the pstr is just the data being sent? |
Well, you can't pass two id's that way.
|
| All times are GMT -4. The time now is 16:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.