 |
|
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
|

06-24-2012
, 19:19
Re: id + any_defined_value in set_task()
|
#8
|
Quote:
Originally Posted by Emp`
You should space them with the max players available (ie. 1001, 1033, 1065, etc.)
Usually you will see authors use an enum to do this:
Code:
enum += 32
{
TASK_ONE = 1001,
TASK_TWO,
TASK_THREE,
//etc.
}
If you used your examples, primary task for id 2 (1001+2) would have the same task id as secondary task for id 1 (1002+1). This would only be problematic if you need to check, change, or remove tasks though.
|
Oh, I never actually thought of that. Somehow I survived without functional errors in my concept so far.
Thanks
__________________
Quote:
|
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
|
|
|
|
|