Problem with color define's
#1

pawn Код:
#define COLOR_MSG "{0xAAAAAAFF}"

SendClientMessage(playerid,COLOR_MSG ,"MSG!");
And i get this error!

error 035: argument type mismatch (argument 2)
Reply
#2

#define COLOR_MSG 0xAAAAAAFF
Reply
#3

I know for that, BUT i wanna to work this way
Reply
#4

Why the hell would you put {HEX} ?

Just make "Color defines" and "Multi-Color support" colors

So use:
pawn Код:
#define SOMECOLOR_COL (0xAAAAAA) // For deufault colors
And
pawn Код:
#define SOMECOLOR_COL2 {0xAAAAAA} // For multi colors
Reply
#5

SAMP 0.3c colors can't be used as parament on msg. Need to be put on the msg:

pawn Код:
#define color 0xFFFFFFFF // WHITE ( Wont have a effect, in this case )
#define blue "{A1C2FF}"
// I just use a color as SendClientMessage parament because it needs this parament
SendClientMessage(playerid,color,""#blue"MESSAGE");
Reply
#6

Nice, tnx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)