10.07.2011, 21:59
Shift the number to the right with 4 bits.
Example: number is 16. We need to convert that to binary first. That's 0b10000.
Now we shift all the bits to the right 4 times. The output will be: 0b00001 in binary, which is 1 in decimal.
It really only makes sense when you're working with bits in your gamemode. Here's some documentation about it: https://sampwiki.blast.hk/wiki/Binary#Binary_operators
Example: number is 16. We need to convert that to binary first. That's 0b10000.
Now we shift all the bits to the right 4 times. The output will be: 0b00001 in binary, which is 1 in decimal.
It really only makes sense when you're working with bits in your gamemode. Here's some documentation about it: https://sampwiki.blast.hk/wiki/Binary#Binary_operators