remove_task
How do you know what task is being removed when calling remove_task? Where is it defined?
|
Re: remove_task
You have to know the taskid for the first parameter of the remove_task native. If you want to remove the taskid for another plugin you need to set the parameter of the remove_task otherwise you only remove task that are made in that plugin.
You need to know the taskid or you can't remove the task. For example Code:
94859 is the 3rd parameter of set_task and is also the taskid. |
Re: remove_task
well for like set_task(1.0, "setHunger",0,"",0,"b"); what is the id of it 0?
is the 0 supposed to be unique? |
Re: remove_task
Yeah change the 0 to some unique number and then use that same number in remove_task
something like Code:
could be usefull to make things easier to read |
Re: remove_task
okay! Thanks for clearing that up for me guys.
|
Re: remove_task
Ah, now I know what that is, too. ^^
One question from my side: There can be multiple tasks with the same id - Will one single remove_task function remove all tasks with that id then or only one specific or random one? |
Re: remove_task
One remove task will remove every task with the same id.
|
| All times are GMT -4. The time now is 06:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.