COLOR_RED and RED
#1

Ok so there is a weird think.

When i write COLOR_RED to example: SendClientMessageToAll(COLOR_RED,"Bla bla"); it gives error.

Anybody knows why?
Reply
#2

did you add
pawn Код:
#define COLOR_RED 0xFF0606FF
in the start of your defines? if yes then I have no Idea, might be the capital letters too
Reply
#3

Ofc i did i mean they are both defined but when i put COLOR_RED it gives error but when i put RED it doesn't.
Reply
#4

pawn Код:
#if defined COLOR_RED
    #undefine COLOR_RED
#endif
#define COLOR_RED RED
Reply
#5

SendClientMessageToAll(THE CODE,"Bla bla");
Reply
#6

Quote:
Originally Posted by lordturhan
Посмотреть сообщение
Ofc i did i mean they are both defined but when i put COLOR_RED it gives error but when i put RED it doesn't.
That's because your define is #define RED not #define COLOR_RED.

Admin please lock this, the OP isn't reading there own code and doesn't know what their defines are. This is going NOWHERE
Reply
#7

Quote:
Originally Posted by iToast
Посмотреть сообщение
That's because your define is #define RED not #define COLOR_RED.

Admin please lock this, the OP isn't reading there own code and doesn't know what their defines are. This is going NOWHERE
and you used your magic power to read them?

Quote:

Ofc i did i mean they are both defined but when i put COLOR_RED it gives error but when i put RED it doesn't.

maybe the code in COLOR_RED is wrong?
Reply
#8

This is such a stupid question.

Your "COLOR_RED" define ain't a RGB code.
Reply
#9

How did you get to 330 posts? Do you even know what a define is?
Reply
#10

Show us the error.
Show us lines..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)