AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Task IDs (https://forums.alliedmods.net/showthread.php?t=54826)

- Billy The Kid - 05-05-2007 03:50

Task IDs
 
Are IDs that are assigned through set_task function in one plug-in used only for that plug-in - I just want to know if they can be messed up externally (use of remove_task(id) in another plug-in)? I wouldn't want that to happen... :)

VEN 05-05-2007 04:25

Re: Task IDs
 
Quote:

/* Removes all tasks with given id. If outside var is
* set then a task can be removed also when
* was set in another plugin. */
native remove_task(id = 0, outside = 0);
So basically if you don't want to mess with other plugins remove_task(id) is ok. And in other case use second parameter == 1.

- Billy The Kid - 05-05-2007 07:53

Re: Task IDs
 
Thx, I supposed so... ;)


All times are GMT -4. The time now is 06:39.

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