simple fix
i want to fix simple redirect.. i dont want to redirect the admins only users i tried
Code:
/* AMXX Mod Scripti tried if (get_user_flags(id) == ADMIN_RESERVATION) if !(get_user_flags(id) & ADMIN_RESERVATION) |
Re: simple fix
maybe i must #define something ? :s
|
Re: simple fix
Stop double posting.
Use is_user_admin. |
Re: simple fix
sorry about double posting.
that you say to use? if (is_user_admin(id) & ADMIN_RESERVATION) ? |
Re: simple fix
You only want it for one type of admin ( ADMN_RESERVATION ) ?
|
Re: simple fix
no for all types of admin..
Edit: also tried with is_user_admin but still redirect all players admins and players.. |
Re: simple fix
PHP Code:
|
Re: simple fix
i will try now and i will tell you
Edit: i compile that: Code:
#include <amxmodx>Code:
/groups/amxmodx/tmp3/textF6nu63.sma(16) : warning 217: loose indentationEdit 2: First code with is_user_admin Code:
/* AMXX Mod Scriptwarning 217: loose indentation |
Re: simple fix
Quote:
If you want to fix that, try to indent your code properly. If you don't know how, you could use the Indenter tool from AMXx Studio. |
Re: simple fix
yes but that script before does anyone know how i can fix it?
|
| All times are GMT -4. The time now is 05:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.