[Tutorial] [0.3c] - Easy colors!
#1

0.3c Easy Colors
The easiest!
Instead of putting {RRGGBB} text and all that, i found a rather better way, which for me, it's the best so far.
It just simple to use, you will see, i already made a #define list with some colors.
It will be easier to read the text you have written there, instead of reading always {FF9035} etc....


The define list with colors
pawn Код:
#define COL_EASY           "{FFF1AF}"
#define COL_WHITE          "{FFFFFF}"
#define COL_BLACK          "{0E0101}"
#define COL_GREY           "{C3C3C3}"
#define COL_GREEN          "{6EF83C}"
#define COL_RED            "{F81414}"
#define COL_YELLOW         "{F3FF02}"
#define COL_ORANGE         "{FFAF00}"
#define COL_LIME           "{B7FF00}"
#define COL_CYAN           "{00FFEE}"
#define COL_LIGHTBLUE      "{00C0FF}"
#define COL_BLUE           "{0049FF}"
#define COL_MAGENTA        "{F300FF}"
#define COL_VIOLET         "{B700FF}"
#define COL_PINK           "{FF00EA}"
#define COL_MARONE         "{A90202}"
#define COL_CMD            "{B8FF02}"
#define COL_PARAM          "{3FCD02}"
#define COL_SERVER         "{AFE7FF}"
#define COL_VALUE          "{A3E4FF}"
#define COL_RULE           "{F9E8B7}"
#define COL_RULE2          "{FBDF89}"
#define COL_RWHITE         "{FFFFFF}"
#define COL_LGREEN         "{C9FFAB}"
#define COL_LRED           "{FFA1A1}"
#define COL_LRED2          "{C77D87}"
I used "{RRGGBB}' , with " " because we are actually inserting that into the string.
Here is a small look.
pawn Код:
SendClientMessage ( playerid,-1, ""#COL_RED"TEXT"#COL_YELLOW" TEXT"#COL_BLUE" TEXT"#COL_MAGENTA" TEXT"#COL_VIOLET" TEXT"#COL_WHITE" TEXT" );
Yeah, it may look a bit long, but at least it's a lot easier to read!Actually, no, reading it in these pawn tags won't make it look easy.
Copy paste into your gm and check it for yourself!

How to actually insert it?
Just simply add , exactly like this!
pawn Код:
"#COL_GREEN"
The above code, goes straight into the string!
Like this
pawn Код:
SendClientMessage( playerid, -1, "   "#COL_GREEN" This is Green!  "#COL_RED" This is Red!!   "#COL_BLUE"  This is Blue!!");
What we are doing is, inserting the {RRGGBB} code into the string using #COL_BLABLA
You can make your own defines with a color picker found on internet!
If you find this not useful just tell me.
I hope this helps you.
Reply


Messages In This Thread
[0.3c] - Easy colors! - by Zh3r0 - 05.12.2010, 12:42
Re: [0.3c] - Easy colors! - by WillyP - 05.12.2010, 12:44
Re: [0.3c] - Easy colors! - by SkizzoTrick - 05.12.2010, 13:06
Re: [0.3c] - Easy colors! - by Hiddos - 05.12.2010, 13:09
Re: [0.3c] - Easy colors! - by Zh3r0 - 05.12.2010, 13:19
Re: [0.3c] - Easy colors! - by Jochemd - 05.12.2010, 13:23
Re: [0.3c] - Easy colors! - by Zh3r0 - 05.12.2010, 13:24
Re: [0.3c] - Easy colors! - by bero1711 - 06.12.2010, 11:49
Re: [0.3c] - Easy colors! - by Finn - 06.12.2010, 11:58
Re: [0.3c] - Easy colors! - by HyperZ - 06.12.2010, 12:05
Re: [0.3c] - Easy colors! - by rjjj - 06.12.2010, 12:07
Re: [0.3c] - Easy colors! - by Zh3r0 - 06.12.2010, 12:10
Re: [0.3c] - Easy colors! - by Gavibro - 07.12.2010, 11:26
Re: [0.3c] - Easy colors! - by Zh3r0 - 07.12.2010, 12:00
Re: [0.3c] - Easy colors! - by Gavibro - 07.12.2010, 12:10
Re: [0.3c] - Easy colors! - by Finn - 07.12.2010, 12:58
Re: [0.3c] - Easy colors! - by Zh3r0 - 07.12.2010, 13:00
Re: [0.3c] - Easy colors! - by Finn - 07.12.2010, 13:12
Re: [0.3c] - Easy colors! - by Zh3r0 - 07.12.2010, 13:14
Re: [0.3c] - Easy colors! - by Aidasas - 19.12.2010, 22:36
Re: [0.3c] - Easy colors! - by hab2ever - 24.12.2010, 12:19
Re: [0.3c] - Easy colors! - by Hiitch - 24.12.2010, 12:22
Re: [0.3c] - Easy colors! - by Mean - 25.12.2010, 16:40
Re: [0.3c] - Easy colors! - by SpriTe - 26.12.2010, 20:12
Re: [0.3c] - Easy colors! - by ToPhrESH - 26.12.2010, 20:17
Re: [0.3c] - Easy colors! - by Farid - 27.12.2010, 05:42
Re: [0.3c] - Easy colors! - by MrDeath537 - 28.12.2010, 06:18
Re: [0.3c] - Easy colors! - by Zh3r0 - 06.01.2011, 13:21
Re: [0.3c] - Easy colors! - by sleepysnowflake - 12.01.2011, 18:31
Re: [0.3c] - Easy colors! - by Unknown1234 - 12.01.2011, 23:26
Re: [0.3c] - Easy colors! - by [M.A]Angel[M.A] - 01.02.2011, 17:06
Re: [0.3c] - Easy colors! - by Zh3r0 - 01.02.2011, 17:47
Respuesta: [0.3c] - Easy colors! - by [Nikk] - 07.01.2012, 08:37

Forum Jump:


Users browsing this thread: 6 Guest(s)