Help with colours.
#1

Hi SA-MP community,
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
But while I do it my way as in the below pawn code,
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);
    }
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.
Reply


Messages In This Thread
Help with colours. - by Faisal_khan - 05.03.2012, 04:00
Re: Help with colours. - by Walsh - 05.03.2012, 04:10
Re: Help with colours. - by Faisal_khan - 05.03.2012, 04:16
Re: Help with colours. - by Walsh - 05.03.2012, 04:26
Re: Help with colours. - by new121 - 05.03.2012, 04:43
Re: Help with colours. - by Faisal_khan - 05.03.2012, 04:50
Re: Help with colours. - by RoboN1X - 05.03.2012, 05:52
Re: Help with colours. - by Faisal_khan - 05.03.2012, 08:01

Forum Jump:


Users browsing this thread: 2 Guest(s)