COLOR_RED and RED - 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: COLOR_RED and RED (
/showthread.php?tid=369305)
COLOR_RED and RED -
lordturhan - 16.08.2012
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?
Re: COLOR_RED and RED -
Cena44 - 16.08.2012
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
Re: COLOR_RED and RED -
lordturhan - 16.08.2012
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.
Re: COLOR_RED and RED -
zgintasz - 16.08.2012
pawn Код:
#if defined COLOR_RED
#undefine COLOR_RED
#endif
#define COLOR_RED RED
Re: COLOR_RED and RED -
xSkullx - 16.08.2012
SendClientMessageToAll(THE CODE,"Bla bla");
Re: COLOR_RED and RED -
iToast - 16.08.2012
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
Re: COLOR_RED and RED -
Cena44 - 16.08.2012
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?
Re: COLOR_RED and RED -
FireCat - 16.08.2012
This is such a stupid question.
Your "COLOR_RED" define ain't a RGB code.
Re: COLOR_RED and RED -
im - 16.08.2012
How did you get to 330 posts? Do you even know what a define is?
Re: COLOR_RED and RED -
tyler12 - 16.08.2012
Show us the error.
Show us lines..