So if i set a task like so :
PHP Code:
#define TASKID_LOL 100
public plugin_init() {
set_task(1.0, "LOL", TASKID_LOL+id)
}
How do I remove the task? I tried this :
PHP Code:
if(task_exists(TASKID_LOL+id))
remove_task(TASKID_LOL+id)
But that crashes my game. So can someone tell me the proper way to do that?
__________________