HEX formatting
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
pawn Код:
stock SendSystemMessage(playerid, color, message[])
{
    new string[144];
    format(string,sizeof(string),"[{2B78FF}MSG{FFFFFF}] {%06x}%s", color >>> 8, message);
    SendClientMessage(playerid, -1, string);
}
Doesn't work. I need to split the HEX color like this: 0x 009900 FF
so that it only uses the MIDDLE 6 characters of the HEX.
Removing the 0x and the FF like this: 009900

Thank you for trying though
Reply


Messages In This Thread
HEX formatting - by sim_sima - 19.12.2013, 14:15
Re: HEX formatting - by Konstantinos - 19.12.2013, 14:20
Re: HEX formatting - by sim_sima - 19.12.2013, 14:26
Re: HEX formatting - by Konstantinos - 19.12.2013, 14:30
Re: HEX formatting - by sim_sima - 19.12.2013, 14:36
Re: HEX formatting - by Konstantinos - 19.12.2013, 14:41
Re: HEX formatting - by sim_sima - 19.12.2013, 14:43
Re: HEX formatting - by Konstantinos - 19.12.2013, 14:51
Re: HEX formatting - by sim_sima - 19.12.2013, 14:55

Forum Jump:


Users browsing this thread: 2 Guest(s)