Raised This Month: $ Target: $400
 0% 

Delay within a function?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Des12
Senior Member
Join Date: Jan 2005
Old 01-01-2006 , 18:57   Delay within a function?
Reply With Quote #1

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:
for(i = 0; i < 30000; i++) {         if(i == 29999}             break; }

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.
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 is offline
 



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 16:09.


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