Color Embedding
#1

Hello all , I'm having troubles with color embeddings , can anyone show me how's the code
Reply
#2

What do you mean Color Embedding? Embedding into what?
Reply
#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
#4

here you got some Colors
Код:
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_LLIGHTBLUE 0x33CCFFAA
#define COLOR_LLIGHTGREEN 0x9ACD32AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_LIGHTYELLOW 0xFFFF91FF
#define COLOR_YELLOW2 0xF5DEB3AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHT_BLUE 0x9FB1EEAA
#define COLOR_PURPLE 0xC2A2DAAA
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)