19.05.2014, 07:50
pawn Код:
#define COLOR_RED 0xFF0000AA
If you're going to use such a thing as a HEX code you need to convert it as well, so the following color would look like this:
pawn Код:
#define COL_RED "{FF0000}"
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[50];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, 24);
format(string,sizeof(string),"My name is "#COL_RED"%s",pName);
SendClientMessageToAll(-1, string);