AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   adding admin level constants (https://forums.alliedmods.net/showthread.php?t=120197)

ngEAr 03-01-2010 17:47

adding admin level constants
 
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.

fysiks 03-01-2010 17:56

Re: adding admin level constants
 
You have to recompile ALL plugins on your compiler.

ngEAr 03-01-2010 18:09

Re: adding admin level constants
 
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?

fysiks 03-01-2010 18:19

Re: adding admin level constants
 
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.

Bugsy 03-01-2010 19:21

Re: adding admin level constants
 
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); 



All times are GMT -4. The time now is 08:44.

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