26.09.2010, 09:56
Quote:
Took some time to make this awesome system save in my mind, I'm still wondering about this: What is the correct usage for binary in pawn, when working with variables? Does it work a bit like:
pawn Code:
pawn Code:
![]() ![]() |
I mean, on the first page you explained that bitwise AND (&) will return as 0 if no bits are shared..
And after what I saw, 68 and 32 does not share any bits..
![confused](images/smilies/confused.gif)
68 = 1000100
32 = 0100000
And if you then do
pawn Code:
if(68 & 32)