Color problems - 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)
+--- Thread: Color problems (
/showthread.php?tid=314067)
Color problems -
MSI - 28.01.2012
Код:
error 035: argument type mismatch (argument 2)
C:\Users\Nick\Desktop\Call Of Duty - Engine SA-MP\gamemodes\Untitled.pwn(142) : error 035: argument type mismatch (argument 2)
C:\Users\Nick\Desktop\Call Of Duty - Engine SA-MP\gamemodes\Untitled.pwn(146) : error 035: argument type mismatch (argument 2)
C:\Users\Nick\Desktop\Call Of Duty - Engine SA-MP\gamemodes\Untitled.pwn(154) : error 035: argument type mismatch (argument 2)
C:\Users\Nick\Desktop\Call Of Duty - Engine SA-MP\gamemodes\Untitled.pwn(158) : error 035: argument type mismatch (argument 2)
The problem comes from the colors
#define COLOR_BLUE "{00CCFF}"
#define COLOR_GREEN "{6EF83C}"
Any suggestions?
Re: Color problems -
legodude - 28.01.2012
replace { with (
Re: Color problems -
=WoR=G4M3Ov3r - 28.01.2012
PHP код:
#define COLOR_BLUE 0x0000BBAA
#define COLOR_GREEN 0x00620096
Re: Color problems -
Konstantinos - 28.01.2012
Quote:
Originally Posted by legodude
replace { with (
|
Please, don't post things if you aren't sure.
pawn Код:
// 1st:
#define COLOR_BLUE 0x0000BBAA
#define COLOR_GREEN 0x00620096
// --
SendClientMessage( playerid, COLOR_GREEN, "This is Green | {0000BB}This is Blue" );
pawn Код:
// 2nd:
#define COLOR_BLUE "{00CCFF}"
#define COLOR_GREEN "{6EF83C}"
// --
SendClientMessage( playerid, -1, ""COLOR_GREEN"This is Green | "COLOR_BLUE"This is Blue" );
Re: Color problems -
MSI - 28.01.2012
0x00620096 what is the name of this color method? This is not RRGGBB and not a Hex color
Re: Color problems -
Konstantinos - 28.01.2012
It's Dark Green
Re: Color problems -
MSI - 28.01.2012
No;p I mean whats the name of this color code method. This is RRGGBB "{00CCFF}" and #FFFFFF is a html color code, but I need the name for 0x0000000 code.
Re: Color problems -
Konstantinos - 28.01.2012
pawn Код:
/*
0x00000000 -> Hexadecimal
0x -> That means that it's Hexadecimalvalue.
00 -> That represents the 'Red' color component.
00 -> That represents the 'Green' color component.
00 -> That represents the 'Blue' color component.
00 -> That represents the 'All' color component.
*/
Re: Color problems -
MSI - 28.01.2012
Thanks

But when I search on ******: hex color picker, I find only sites with #FFFFFF html codes, can u give me a link?
Re: Color problems -
smokeweed - 28.01.2012
Why to use playerid, -1 -1