Raised This Month: $ Target: $400
 0% 

set_task question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KCE
Senior Member
Join Date: Jan 2005
Location: Los Angeles, CA
Old 04-21-2005 , 20:17   set_task question
Reply With Quote #1

Code:
set_task ( Float:time,const function[],id = 0,parameter[]="",len = 0,flags[]="", repeat = 0 )
If flag is "a", then repeat means how many times to repeat it?
__________________

My 3D Art: http://k-c-e.deviantart.com/

[img]http://img213.**************/img213/7132/userbar152416mp2.gif[/img]
[img]http://img65.**************/img65/5606/userbar152433ie5.gif[/img]
[img]http://img223.**************/img223/7576/userbar152440yk6.gif[/img]
KCE is offline
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 04-21-2005 , 20:19  
Reply With Quote #2

unlimited ;)
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
Ced
Member
Join Date: Oct 2004
Old 04-21-2005 , 20:25  
Reply With Quote #3

no, "b" is an infinite loop while "a" is repeating how many times u specify by adding another argument after the flags.
Ced is offline
KCE
Senior Member
Join Date: Jan 2005
Location: Los Angeles, CA
Old 04-21-2005 , 21:11  
Reply With Quote #4

Let's say I do:

Code:
set_task(0.5, "MyTask", 1563, _,_, "a",10)

Does this mean it'll do MyTask every 0.5 seconds, 10 times?
Will it start after 0.5 sec and then do the above or will it start right away and do the above?

__________________

My 3D Art: http://k-c-e.deviantart.com/

[img]http://img213.**************/img213/7132/userbar152416mp2.gif[/img]
[img]http://img65.**************/img65/5606/userbar152433ie5.gif[/img]
[img]http://img223.**************/img223/7576/userbar152440yk6.gif[/img]
KCE is offline
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 04-22-2005 , 11:07  
Reply With Quote #5

Yes, it will wait the 0.5 seconds before getting executed the first time..
xeroblood is offline
Send a message via MSN to xeroblood
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 10:02.


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