HEX Conversion.
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
What do you mean by hex? Hex is a numeric representation of numbers, so if you do:

pawn Код:
#define COLOR 0xFF0033AA
You can do:

pawn Код:
format(str, sizeof (str), "{%06x}text", COLOR>>>8);
That will correctly format the colors in a string from a number. Or do you have a string representation of colour?
What i want is to convert player's color into the new code format. { }

BTW, nice usage :O
Reply


Messages In This Thread
HEX Conversion. - by Zh3r0 - 30.11.2010, 14:11
Re: HEX Conversion. - by Zh3r0 - 30.11.2010, 14:17
Re: HEX Conversion. - by Zh3r0 - 30.11.2010, 16:41
Re: HEX Conversion. - by Pghpunkid - 05.11.2011, 17:25
Re: HEX Conversion. - by [MWR]Blood - 05.11.2011, 17:26

Forum Jump:


Users browsing this thread: 1 Guest(s)