View Single Post
Author Message
EpicKiller
Senior Member
Join Date: Jun 2014
Location: Constanta, Romania
Old 03-11-2015 , 05:39   Checking for several flags
Reply With Quote #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 is offline
Send a message via Yahoo to EpicKiller Send a message via Skype™ to EpicKiller