Check if() Task done .
How to check if a "task" is done ? And when its done , The "task" would stop what its doing .
|
Re: Check if() Task done .
Code:
|
Re: Check if() Task done .
PHP Code:
|
Re: Check if() Task done .
Just add g_task = true on the task's function
|
Re: Check if() Task done .
Quote:
|
Re: Check if() Task done .
task_exists
When it returns 0, the task finished. |
Re: Check if() Task done .
I tried that but the plugin just skip the task . And when I swap their places , The task just keep repeating and repeating the same thing .
PHP Code:
|
Re: Check if() Task done .
Quote:
drekes code will telle you if a task is finished or hasn't been launched yet. Devil259 code is little better. If you understand both codes, you can do something ok. fl0werD's code is the exact example of what you must NOT do. |
Re: Check if() Task done .
Quote:
I would suggest you tell us what you are ACTUALLY trying to do as you are likely asking the wrong questions. |
Re: Check if() Task done .
Quote:
|
| All times are GMT -4. The time now is 08:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.