Color Embedding
#3

You have to define it first, like this:

pawn Код:
#define green   "{3DE3B1}"
Then you can either use the function "SendClientMessage" or format a string.

Example 1(Using SendClientMessage):

pawn Код:
SendClientMessage(playerid, Yellow, "This text is yellow "green"but this text is green!");
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):

pawn Код:
new string[44];
format(string, sizeof(string), "This text is yellow "green"but this text is green!");
SendClientMessage(playerid, Yellow, string);
The result is gonna be the same as the above.
Reply


Messages In This Thread
Color Embedding - by Zex Tan - 29.11.2012, 23:43
Re: Color Embedding - by Joshman543 - 29.11.2012, 23:56
Re: Color Embedding - by gtakillerIV - 30.11.2012, 08:42
Re: Color Embedding - by goviscrap - 30.11.2012, 09:27

Forum Jump:


Users browsing this thread: 2 Guest(s)