Thread
:
Checking for several flags
View Single Post
Author
Message
EpicKiller
Senior Member
Join Date: Jun 2014
Location: Constanta, Romania
03-11-2015 , 05:39 Checking for several flags
#
1
I had to do a check for three flags. I tried if(get_user_flags(id) & ADMIN_LEVEL_F | ADMIN_LEVEL_G | ADMIN_LEVEL_H), but everybody would pass this one. Should "|" be a comma or "&&"? Of course I also thought of three if statements, but that's obviously uneficient. How should I do it?
__________________
~ Swiftly and with style ~
EpicKiller
View Public Profile
Send a private message to EpicKiller
Find More Posts by EpicKiller