HEX formatting
#6

Quote:
Originally Posted by sim_sima
Посмотреть сообщение
It will send a client message that looks like this: "[MSG] This is a message", where the "[]" are blue and the "MSG" is white, and the "This is a message" will be green (or whatever color you use in the function)
The code you posted in your first post does the opposite. It makes the brackets [] white and the MSG blue.

pawn Код:
stock SendSystemMessage(playerid, color, message[])
{
    new string[144];
    format(string, sizeof(string), "[{FFFFFF}MSG{2B78FF}] {%06x}%s", color >>> 8, message);
    SendClientMessage(playerid, 0x2B78FFFF, string);
}
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: 3 Guest(s)