Check admin flags
hi this is my code basically what i want is that to get the acces flags via cvar and check whether the user has that flags and execute som codes according to it hers my code
PHP Code:
here i want to check whether user has a ie immunity flag or not but this code is not working :( please help |
Re: Check admin flags
Use & instead of &&
|
Re: Check admin flags
Quote:
|
Re: Check admin flags
&& is the logic boolean 'and'-operator while & is the bitwise 'and'-operator. There is a good tutorial in the tutorials section about that.
|
Re: Check admin flags
If you ever use a cvar (or any variable) that holds more than 1 flag, your code will still return true when the player has only 1 of the flags, any combination of, or all flags.
Here's an example, see my comments. PHP Code:
|
| All times are GMT -4. The time now is 13:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.