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
Rorthic
Junior Member
Join Date: Apr 2005
Old 05-23-2005 , 21:50  
Reply With Quote #3

so something like this? havent tried it yet, just wondering if this is what you meant

Code:
set_task(30.0, "replaceXP") public replaceXP(id) { ns_set_exp(id,(ns_get_exp(id) - 1000)) }

so does the task only fire once or do i need to stop the task with another command? im guessing it does only fire once since the repeat flag isnt there. So to get the task to repeat you set it like this?

Code:
set_task(30.0, "xpbalance", a, 10)

if i understand it right it will repeat 10 times then stops?

*EDIT fixed typo
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