Color Embedding - 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: Color Embedding (
/showthread.php?tid=263342)
Color Embedding -
[RVRP]Tyler - 21.06.2011
I'm using color embedding for the first time and I'm curious how would I make a define that I could use instead of having to add the color define every time.
Instead of having to look up the definition for each color like {FFFFFF} for white and {FF0000} for red, I would like to use {WHITE_EMBED} and {RED_EMBED}.
I tried defining white as #define WHITE_EMBED "FFFFFF" and all that it does is send {WHITE_EMBED} as part of the client message.
Re: Color Embedding -
Wesley221 - 21.06.2011
Try
pawn Code:
#define WHITE_EMBED {FFFFFF}
Re: Color Embedding -
[RVRP]Tyler - 21.06.2011
Quote:
Originally Posted by Wesley221
Try
pawn Code:
#define WHITE_EMBED {FFFFFF}
|
I already tried that and it didn't work. Afterall, it wouldn't really make sense to have
{WHITE_EMBED} = {{FFFFFF}}.
Re: Color Embedding -
Zh3r0 - 21.06.2011
Mayube you are looking for this?
https://sampforum.blast.hk/showthread.php?tid=196360
Re: Color Embedding -
[RVRP]Tyler - 21.06.2011
Quote:
Originally Posted by Zh3r0
|
Thanks, I'll try it.
Re: Color Embedding -
park4bmx - 21.06.2011
it needs to be like this
pawn Code:
#define WHITE_EMBED "{FFFFFF}"
And you use it like this
Re: Color Embedding -
Wesley221 - 21.06.2011
Quote:
Originally Posted by [RVRP]Tyler
I already tried that and it didn't work. Afterall, it wouldn't really make sense to have
{WHITE_EMBED} = {{FFFFFF}}.
|
Theres no need to use { } 's, just type WHITE_EMBED, and youre done
Re: Color Embedding -
Macluawn - 21.06.2011
Sendclientmessage(playerid...., "default color"RED_EMBED"red color");
or something like that.
#define RED_EMBED {F81414}