HexColor, converting
#10

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
PHP код:
new idcolor;
sscanf(params"ux"idcolor);
SetPlayerColor(id,(color << 8) | 0xFF); //0xFF is alpha 
I still don't understand how << (or >>) works.
Код:
main()
{
	new a = 3;
	printf("%b", a << 1);
	printf("%b", a << 0b1);
	printf("%b & %b", 3, 4);
}
Код:
[02:55:38] 110
[02:55:38] 110
[02:55:38] 11 & 100
Reply


Messages In This Thread
HexColor, converting - by saffierr - 15.12.2016, 17:28
Re: HexColor, converting - by oktokt1 - 15.12.2016, 17:32
Re: HexColor, converting - by saffierr - 15.12.2016, 17:42
Re: HexColor, converting - by oMa37 - 15.12.2016, 18:00
Re: HexColor, converting - by saffierr - 15.12.2016, 19:18
Re: HexColor, converting - by SickAttack - 15.12.2016, 19:42
Re: HexColor, converting - by saffierr - 15.12.2016, 20:06
Re: HexColor, converting - by AbyssMorgan - 15.12.2016, 20:08
Re: HexColor, converting - by oktokt1 - 15.12.2016, 20:13
Re: HexColor, converting - by Dayrion - 16.12.2016, 01:01

Forum Jump:


Users browsing this thread: 4 Guest(s)