Problem with color define's - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with color define's (
/showthread.php?tid=215904)
Problem with color define's -
[H]265 - 24.01.2011
pawn Код:
#define COLOR_MSG "{0xAAAAAAFF}"
SendClientMessage(playerid,COLOR_MSG ,"MSG!");
And i get this error!
error 035: argument type mismatch (argument 2)
Re: Problem with color define's -
ExeC - 24.01.2011
#define COLOR_MSG 0xAAAAAAFF
Re: Problem with color define's -
[H]265 - 24.01.2011
I know for that, BUT i wanna to work this way
Re: Problem with color define's -
Mean - 24.01.2011
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
Re: Problem with color define's -
blackwave - 24.01.2011
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");
Re: Problem with color define's -
[H]265 - 24.01.2011
Nice, tnx