Raised This Month: $ Target: $400
 0% 

remove_task


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 12-27-2005 , 19:00  
Reply With Quote #3

Quote:
Originally Posted by Sneakpeek
Actually remove_task will remove ALL set_tasks unless you give your set_task a special id.
Nnnnoooesss. IIRC remove_task will remove all tasks with id=first parameter in your plugin (and also in all other plugins if the second parameter is non-zero).

Both parameters default to 0, ie. writing
Code:
remove_task();
is equivalent to
Code:
remove_task(0, 0);

This means that if you don't specify an id, remove_task will remove all tasks with id=0 in your plugin.

Also note that if you don't pass an id parameter to set_task, the id of the created task will be 0, so remove_task(0); / remove_task(); will remove those (and those with id set to 0 explicitly).
__________________
hello, i am pm
PM 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 15:50.


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