30.11.2012, 08:42
You have to define it first, like this:
Then you can either use the function "SendClientMessage" or format a string.
Example 1(Using SendClientMessage):
It will give you this: Yellow color ---->This text is yellow | This text is green ------>but this text is green!
Example 2(formating a string):
The result is gonna be the same as the above.
pawn Код:
#define green "{3DE3B1}"
Example 1(Using SendClientMessage):
pawn Код:
SendClientMessage(playerid, Yellow, "This text is yellow "green"but this text is green!");
Example 2(formating a string):
pawn Код:
new string[44];
format(string, sizeof(string), "This text is yellow "green"but this text is green!");
SendClientMessage(playerid, Yellow, string);