Not reading defines?
#1

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?
Reply
#2

Hey,
Try this way #define COL_RED F81414
Reply
#3

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)