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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with colors (
/showthread.php?tid=221680)
Help with colors -
marinov - 05.02.2011
I want these colors :
#556B2F
#B3EE3A
#BCEE68
I get them from :
http://www.december.com/html/spec/color1.html
Can someone convert them into Defines for me ?
EDIT: or should I just use #define PROX1 0x556B2F, #define PROX2 0xB3EE3A, etc... ?
Re: Help with colors -
Dumb - 05.02.2011
Quote:
#define NICE_BLUE 0xa0d3ffAA
#define GREEN 0x21DD00FF
#define RED 0xE60000FF
|
This is demo !
Re: Help with colors -
marinov - 05.02.2011
demo of what ?
Re: Help with colors -
Dumb - 05.02.2011
#define Color 0xXXXXXXXXX
You can use this.
Re: Help with colors -
marinov - 05.02.2011
I know that, but I need that to be converted
Re: Help with colors -
randomkid88 - 05.02.2011
He just told you how.
pawn Код:
#define COLOR_NAME 0x######
Re: Help with colors -
Dumb - 05.02.2011
#556B2F = 0xRRGGBB16
#B3EE3A = 0xRRGGBB65
#BCEE68 = 0xRRGGBB68
Try these but im not sure.
Re: Help with colors -
randomkid88 - 05.02.2011
Here.
pawn Код:
#define DARKGREEN 0x556B2FFF
#define LIGHTGREEN 0xB3EE3AFF
#define LIGHTGREEN2 0xBC3368FF
Put those at the top and whenever you want to use them just use the name, like this:
pawn Код:
SendClientMessage(playerid, DARKGREEN, "This message is dark green");
Re: Help with colors -
marinov - 05.02.2011
Quote:
Originally Posted by randomkid88
Here.
pawn Код:
#define DARKGREEN 0x556B2FFF #define LIGHTGREEN 0xB3EE3AFF #define LIGHTGREEN2 0xBC3368FF
Put those at the top and whenever you want to use them just use the name, like this:
pawn Код:
SendClientMessage(playerid, DARKGREEN, "This message is dark green");
|
I know how to use them lmaooo, I just wanted them to be converted.
Re: Help with colors -
marinov - 05.02.2011
Quote:
Originally Posted by randomkid88
Here.
pawn Код:
#define DARKGREEN 0x556B2FFF #define LIGHTGREEN 0xB3EE3AFF #define LIGHTGREEN2 0xBC3368FF
Put those at the top and whenever you want to use them just use the name, like this:
pawn Код:
SendClientMessage(playerid, DARKGREEN, "This message is dark green");
|
The last one was kinda pink, so its wrong, the others are fine