05.03.2012, 04:00
Hi SA-MP community,
I have an error regarding colors. On skin selection I want the team name to be shown in these colors.
But while I do it my way as in the below pawn code,
it makes a whole sentence. Like for STAT it shows COLOR_ORANGE STAT.
I tried
"COLOR_ORANGE"STAT;
"#COLOR_ORANGE#"STAT;
COLOR_ORANGESTAT.
But all had some or the other error.
Please help me.
I have an error regarding colors. On skin selection I want the team name to be shown in these colors.
pawn Код:
#define COLOR_STAT COLOR_ORANGE
#define COLOR_SWAT COLOR_LIGHTBLUE
#define COLOR_ARMY COLOR_TAN
#define COLOR_POLICE COLOR_BLUE
#define COLOR_CIVILIAN COLOR_WHITE
#define COLOR_MECHANIC COLOR_GREY
#define COLOR_DRUGDEALER COLRO_WHITE
pawn Код:
{
case 0..1: GameTextForPlayer(playerid, "COLOR_ORANGE STAT", 5000, 6);
case 2: GameTextForPlayer(playerid, "~b~SWAT", 5000, 6);
case 3: GameTextForPlayer(playerid, "COLOR_TAN ARMY", 5000, 6);
case 4..12: GameTextForPlayer(playerid, "~g~POLICE", 5000, 6);
case 13..26: GameTextForPlayer(playerid, "~w~CIVILIAN", 5000, 6);
case 27: GameTextForPlayer(playerid, "COLOR_GREY MECHANIC", 5000, 6);
case 28..32: GameTextForPlayer(playerid, "~w~DRUG DEALER", 5000, 6);
}
I tried
"COLOR_ORANGE"STAT;
"#COLOR_ORANGE#"STAT;
COLOR_ORANGESTAT.
But all had some or the other error.
Please help me.