Not reading defines? - 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: Not reading defines? (
/showthread.php?tid=587893)
Not reading defines? -
AndreiWow - 03.09.2015
Why it is not reading defines?
Example I put this
#define COL_RED "{F81414}"
But if I use it somewhere, it says undentified
or anything I define, it doesnt read, why?
Re: Not reading defines? -
bgedition - 03.09.2015
Hey,
Try this way #define COL_RED F81414
Re: Not reading defines? -
Stanford - 03.09.2015
Can you show us how do you actually use them?
if this was a 0.3c color you are defining it in the right way an example of usage:
pawn Код:
SendClientMessage(playerid, -1, "Hello I am "#COL_RED"Red");
But, if you want to use it for messages for instance define it that way:
pawn Код:
#define COLOR_RED 0xF8141400
Usage:
pawn Код:
SendClientMessage(playerid, COLOR_RED, "The whole message is in RED!");
I hope I helped any feedback is appreciated!