PHP Code:
set_task(fTimeout, "taskInvincibleRemove", TASK_INVINCIBLE + id, "", 0, "a", 1);
set_task(fTimeout, "taskStealthRemove", TASK_STEALTH + id, "", 0, "a", 1);
If you are not passing a parameter(s), use an underscore not "". Also, you are passing the repeat flag "a" but you are only repeating one time so its not needed. Suppose you wanted to repeat 10 times, you would do this:
PHP Code:
set_task( fTimeout , "taskStealthRemove" , TASK_STEALTH + id , _, _, "a" , 10 );
For doing what it looks like you are trying to do, this will work:
PHP Code:
set_task(fTimeout, "taskInvincibleRemove", TASK_INVINCIBLE + id );
set_task(fTimeout, "taskStealthRemove", TASK_STEALTH + id );
__________________