Raised This Month: $ Target: $400
 0% 

Making a "wait" function


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-03-2012 , 10:36   Re: Making a "wait" function
Reply With Quote #11

Quote:
Originally Posted by YamiKaitou View Post
PHP Code:
new 0;
while (
50000); 
Replace 50000 with the correct number that equals the amount of time you want to wait.
Just be aware, OP, that this will also pause your server while you are waiting as if it has crashed.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Xpawn
Junior Member
Join Date: Dec 2011
Old 07-03-2012 , 10:52   Re: Making a "wait" function
Reply With Quote #12

Simply, Use Task
Code:
set_task(2.0, "Funtion", /*index*/)
__________________
New Member

Last edited by Xpawn; 07-03-2012 at 10:53.
Xpawn is offline
Send a message via MSN to Xpawn
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-03-2012 , 19:22   Re: Making a "wait" function
Reply With Quote #13

Quote:
Originally Posted by YamiKaitou View Post
PHP Code:
new 0;
while (
50000); 
Replace 50000 with the correct number that equals the amount of time you want to wait.
LOL. Fun times.
__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode