Raised This Month: $ Target: $400
 0% 

setting a delay before next line in function is called


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Rorthic
Junior Member
Join Date: Apr 2005
Old 05-23-2005 , 02:04   setting a delay before next line in function is called
Reply With Quote #1

ok i need to set a delay before the next line is called, i tried using a loop with a high number, didnt seem to affect it. this is my code

Code:
ns_set_exp(id, (ns_get_exp(id) + 1000)) client_cmd(id, "impulse 114")   //change to gorge // need a delay here ns_set_exp(id,(ns_get_exp(id) - 1000))

without the delay the line after the comment gets executed before the client_cmd. Making the client_cmd never execute.

i tried this as a delay with no luck
Code:
for (i = 1; i <= 30000; i++) { //just a delay }

tried 300000 in there too still nothing.

any way to cause a delay?
Rorthic 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:39.


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