HEX Conversion.
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
In that case the code I already posted will do:

pawn Код:
format(str, sizeof (str), "{%06x}text", GetPlayerColor(playerid) >>> 8);
The "06" in the x specifier may not be required. It isn't in RC1 as short colour codes are valid ({FF} is blue), but I know long codes ({FFAA4455}) are invalid in RC3, I've not yet had a chance to retest short codes.
Wow, thank you very much ******, you are a savior!
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)