Raised This Month: $ Target: $400
 0% 

id + any_defined_value in set_task()


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-24-2012 , 19:19   Re: id + any_defined_value in set_task()
Reply With Quote #8

Quote:
Originally Posted by Emp` View Post
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.
hornet is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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