Raised This Month: $51 Target: $400
 12% 

Checking for several flags


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode