Raised This Month: $32 Target: $400
 8% 

Multiple Admin Flags


Post New Thread Reply   
 
Thread Tools Display Modes
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-22-2018 , 04:40   Re: Multiple Admin Flags
Reply With Quote #11

Quote:
Originally Posted by eyal282 View Post
Doesn't Admflag_x & admflag_y work? Or +? Try adding both flags.
& won't work and will return 0 (it's used for checking if a bit is set). + will probably work, but | is a faster operation.

Edit: Almost forgot, + will do the wrong thing if that bit is already set. Admflag_x + admflag_y + Admflag_x won't give you what you want.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-22-2018 at 04:41.
Powerlord is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 10-22-2018 , 04:46   Re: Multiple Admin Flags
Reply With Quote #12

Quote:
Originally Posted by Powerlord View Post
& won't work and will return 0 (it's used for checking if a bit is set). + will probably work, but | is a faster operation.

Edit: Almost forgot, + will do the wrong thing if that bit is already set. Admflag_x + admflag_y + Admflag_x won't give you what you want.
What does it mean? About the +? So 2*admflag_x + admflag_y will fail but admflag_x + y will work?
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334

Last edited by eyal282; 10-22-2018 at 04:51.
eyal282 is offline
Reply



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 06:19.


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