Raised This Month: $ Target: $400
 0% 

Can't get a set_task to repeat/loop


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Trp. Jed
Member
Join Date: Aug 2004
Old 09-14-2004 , 21:26   Can't get a set_task to repeat/loop
Reply With Quote #1

I'm having some problems getting a specific function to be called repeatedly. I've tried using the repear values and flags of set_task but AMX just gives me errors.

Basically what I want to do is this.

- set_task calls function A after 2 seconds.
- function A executes code every 0.5 seconds until 10 seconds have passed.
- function A then executes different code.

I tried making function A just contan two set_tasks, one at 0.5 to function B, and another at 10.0 for function C.

Function B executed once then stopped and then function C executed after 10 seconds. I think the fact it only executed once was because I used the same ID

Anyway, in short thats what I want to do, have one set of code execute every 0.5 seconds and then after 10 seconds from the time it was called, run another branch of code.

Anyone got any good suggestions?
Trp. Jed 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 23:13.


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