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?