Set user flags from const...
Can't try this, but will this work ok? Will this add all the flags in the const?
PHP Code:
|
Re: Set user flags from const...
It won't, first off these are constants not strings and secondly you can't use array in the set_user_flags native.
Code:
Or a better way: Code:
|
Re: Set user flags from const...
Oh lol... I absolutely forgot about this... :D
Thanks! :) |
Re: Set user flags from const...
Why did you not do that :
Code:
Why you set an OR BITWISE operator and not an AND BITWISE ? |
Re: Set user flags from const...
Quote:
Re-read the bitwise tutorial you would understand it I think this will make you understand. |
Re: Set user flags from const...
PHP Code:
If the player have "a" flag, its will replace again with a flag "a" i not understand the Optmization of this, so for remove the "z" user flag, it will used with a PHP Code:
A better example: If will turn a normal user admin with a flag "a", write this: PHP Code:
so to remove the "z" flag, you need to: PHP Code:
|
Re: Set user flags from const...
So I can do it like this?
PHP Code:
|
Re: Set user flags from const...
Yes perfectly...
|
| All times are GMT -4. The time now is 10:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.