~get_user_flags(id) & read_flags(flag) dosn't work
Why such use as in title of topic doesn't work?
Example: PHP Code:
|
Re: ~get_user_flags(id) & read_flags(flag) dosn't work
~userFlags(attacker, "sv")
|
Re: ~get_user_flags(id) & read_flags(flag) dosn't work
No. Then the player will have to have both flags.
, = or in read_flags !(userFlags(attacker, "s, v")) working ~userFlags(attacker, "s, v")) not working |
Re: ~get_user_flags(id) & read_flags(flag) dosn't work
lets say that the "attacker" has both flags and userFlags macro returns 4 (binary 0100)
! is a logical operator. !4 will result false ~ is a bitwise operator. ~0100 will result in 1011 (decimal 11) and that is still considered true in the if statement |
Re: ~get_user_flags(id) & read_flags(flag) dosn't work
|
All times are GMT -4. The time now is 08:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.