09.03.2011, 19:11
Question about the bit operators in if-statements:
Ok, I'm using the "32 bools in one variable" method now, and I got it all working except one thing.
I can check if a value is set like this:
but how do I check if the bit isn't set?
I got confused with the bit operators
Ok, I'm using the "32 bools in one variable" method now, and I got it all working except one thing.
I can check if a value is set like this:
pawn Код:
if(bSettings & setting1)
pawn Код:
if(bSettings (?) setting1)
![Tongue](images/smilies/razz.gif)