Raised This Month: $ Target: $400
 0% 

Set And Remove Tasks


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Zombie Lurker
Senior Member
Join Date: Mar 2009
Old 06-04-2009 , 10:41   Set And Remove Tasks
Reply With Quote #1

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?
__________________
Zombie Lurker is offline
 


Thread Tools
Display Modes

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 13:53.


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