Raised This Month: $ Target: $400
 0% 

adding admin level constants


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ngEAr
Member
Join Date: Jun 2009
Old 03-01-2010 , 17:47   adding admin level constants
Reply With Quote #1

Hi , i have added #define ADMIN_TEST (1<<26) /* flag "w" */ in amxconst.
What should i do to make it work in plugin where its set ADMIN_TEST.
ngEAr is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-01-2010 , 17:56   Re: adding admin level constants
Reply With Quote #2

You have to recompile ALL plugins on your compiler.
__________________
fysiks is offline
ngEAr
Member
Join Date: Jun 2009
Old 03-01-2010 , 18:09   Re: adding admin level constants
Reply With Quote #3

Is there any other way how to add admin levels or mb similar thread to mine with better explanation?

Question: if only one plugin is using that flag which i added manually , why all plugins must be recompiled?
Or which plugins should be recompiled?

Last edited by ngEAr; 03-01-2010 at 18:13.
ngEAr is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-01-2010 , 18:19   Re: adding admin level constants
Reply With Quote #4

Well, if you are only ever going to use it in a few plugins and not assigne "w" to any other commands (via cmdaccess.ini) then you should only need to compile those plugins using your modified amxconst.
__________________
fysiks is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-01-2010 , 19:21   Re: adding admin level constants
Reply With Quote #5

I recommend adding the flag to each plugin that uses it instead of modifying amxconst.inc. This way when others try to compile your plugin on their machine they will get no compile errors for undefined symbol.

PHP Code:
const ADMIN_TEST = (1<<26); 
__________________
Bugsy is offline
Reply



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 08:44.


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