SA-MP Forums Archive
Help with Colors - 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: Help with Colors (/showthread.php?tid=347739)



Help with Colors - San1 - 02.06.2012

okay i am making a Deathmatch script and i made a SendClientMessage(playerid, COLOR_BLUE, "Welcome");


but it says the COLOR_BLUE is undefined symbol but it is defined

look #define COLOR_BLUE 0x0000FFFF

whats wrong with it
error 017: undefined symbol "COLOR_BLUE"


Re: Help with Colors - Face9000 - 02.06.2012

Take this small list of colors and put it in the other defines you have:

pawn Код:
#define brown 0x993300AA
#define black 0x00000000
#define nerotrasp 0x00000050
#define grey 0xAFAFAFAA
#define greywhite 0xEEEEFFC4
#define COLOR_WHITE 0xFFFFFFAA
#define yellow 0xFFFF00AA
#define orange 0xFF9900AA
#define red 0xFF0000AA
#define darkred 0x660000AA
#define lightred 0xFF99AADD
#define pink 0xFF66FFAA
#define violet 0x9955DEEE
#define violet2 0x800080AA
#define COLOR_BLUE 0x4169FFAA
#define neutralblue 0xABCDEF01
#define mediumblue 0x63AFF00A
#define blue 0x0000BBAA
#define darkblue 0x300FFAAB
#define lightbluegreen 0x0FFDD349
#define darkgreen 0x12900BBF
#define green 0x33AA33AA
#define neutralgreen 0x81CFAB00
#define lightgreen 0x24FF0AB9
#define COLOR_DARKGOLD 0x808000AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COL_WHITE "{FFFFFF}"
#define COL_RED "{F81414}"
#define COL_GREEN "{00FF22}"
#define COL_LIGHTBLUE "{00CED1}"



Re: Help with Colors - swindle69 - 02.06.2012

make sure your #define is at the top of the page/script.


Re: Help with Colors - San1 - 02.06.2012

it still cannot read from COLOR_BLUE