Color problems
#1

Код:
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?
Reply
#2

replace { with (
Reply
#3

PHP код:
#define COLOR_BLUE 0x0000BBAA
#define COLOR_GREEN 0x00620096 
Reply
#4

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" );
Reply
#5

0x00620096 what is the name of this color method? This is not RRGGBB and not a Hex color
Reply
#6

It's Dark Green
Reply
#7

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.
Reply
#8

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.
*/
Reply
#9

Thanks But when I search on ******: hex color picker, I find only sites with #FFFFFF html codes, can u give me a link?
Reply
#10

Why to use playerid, -1 -1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)