AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   removing task (https://forums.alliedmods.net/showthread.php?t=193827)

cstrike37 08-23-2012 03:28

removing task
 
How do I remove task?

PHP Code:

    set_task1.0"predator_ringloop"0""0"b")
    
set_taskget_cvar_float("predator_aurafrequency"), "predator_auraloop"0""0"b"


jimaway 08-23-2012 03:40

Re: removing task
 
remove_task(0)

Neeeeeeeeeel.- 08-23-2012 06:51

Re: removing task
 
You may set a task id to prevent 'errors'.

fysiks 08-23-2012 19:52

Re: removing task
 
Quote:

Originally Posted by jimaway (Post 1779891)
remove_task(0)

That won't work correctly if you have other tasks without IDs. It will remove them all (of the ones without an ID).

jimaway 08-24-2012 06:57

Re: removing task
 
well then he should set some other id for those tasks


All times are GMT -4. The time now is 05:47.

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