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
is equivalent to
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).
__________________