AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   set_task - global (https://forums.alliedmods.net/showthread.php?t=224732)

waza123a 08-27-2013 17:27

set_task - global
 
Why many users are setting unique task id ?

#defname unique_task_id = 12345

Code:

set_task(5.0, "f", id+unique_tas_id)
all tasks are global in all plugins ? i can access task from other plugin or what ?

dark_style 08-27-2013 17:47

Re: set_task - global
 
http://forums.alliedmods.net/showthread.php?t=125638

waza123a 08-27-2013 18:12

Re: set_task - global
 
So from that topic I understand that set_task() are local. Correct ?

dark_style 08-28-2013 02:44

Re: set_task - global
 
If you want to access task used by another plugin, read Exolent's post again.

Black Rose 08-28-2013 13:32

Re: set_task - global
 
set_task() is "local" but can be stopped globally by remove_task().
You don't even need an unique id locally.

YamiKaitou 08-28-2013 15:34

Re: set_task - global
 
Unique IDs are only needed if you are using remove_task in the plugin or you have multiple tasks going to the same handler

waza123a 08-28-2013 17:10

Re: set_task - global
 
thanks, question solved.


All times are GMT -4. The time now is 19:10.

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