Thread: sound message
View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-17-2022 , 19:13   Re: sound message
Reply With Quote #7

Quote:
Originally Posted by OciXCrom View Post
Code:
bool:is_user_access(id)     return !!(get_user_flags(id) & ADMINACCESS)

Should be:

Code:
bool:is_user_access(id)     return (get_user_flags(id) & ADMINACCESS) != 0
Why would you say that? Both result in the same return value. Using "!!" is valid. The only negative thing about it is that it might be more confusing to people who don't understand what exactly the "!!" does.
__________________
fysiks is offline