24.04.2009, 20:07
That is a very very very interessting topic 
Can you explain me please what that do?
I found it here: http://forum.sa-mp.com/index.php?top...0537#msg280537
I think...
for example ih = getplayercolor(playerid) //0xff0000ff with setplayercolor.
Now it looks in binary like this:
Now bitshifting logical right(24):
Now binary AND:
Thats my result, but thats wrong :/
The code
work perfecly but i cant understand it.
Can you please tell me what i think wrong?
Thanks
//EDIT
PLEASE EXPLAIN
Sry for doublelpost, but i think that no one saw this: http://forum.sa-mp.com/index.php?top....msg630072#new

Can you explain me please what that do?
Код:
printf("%02x%06x", ih >>> 24, ih & 0x00FFFFFF);
I think...
for example ih = getplayercolor(playerid) //0xff0000ff with setplayercolor.
Now it looks in binary like this:
Код:
11111111 11111111 00000000 00000000 00000000 00000000 11111111 11111111 = FF 00 00 FF
Код:
00000000 00000000 00000000 11111111 11111111 00000000 00000000 00000000 = 00 0F F0 00
Код:
00000000 00000000 00000000 11111111 11111111 00000000 00000000 00000000 = 00 0F F0 00
The code
Код:
printf("%02x%06x", ih >>> 24, ih & 0x00FFFFFF);
Can you please tell me what i think wrong?
Thanks

//EDIT
PLEASE EXPLAIN
Sry for doublelpost, but i think that no one saw this: http://forum.sa-mp.com/index.php?top....msg630072#new