undefined symbol "COLOR_LIGHTGREEN - 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: undefined symbol "COLOR_LIGHTGREEN (
/showthread.php?tid=238961)
undefined symbol "COLOR_LIGHTGREEN -
BurgessGaming - 12.03.2011
Right so after my script got completely messed up to the point my gates wouldn't open end everytime i entered buildings my server turned it's self off, i decided to start from scratch....now i got this problem right at the begining this has never happened before, someone help?
pawn Код:
#define COLOR_YELLOW 0xFFFF00AA
pawn Код:
if (strcmp("/help", cmdtext, true, 5) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "example");
pawn Код:
C:\Users\Tyler Burgess\Documents\SA Servers\Own coded\gamemodes\PoleRlay.pwn(100) : error 017: undefined symbol "COLOR_YELLOW"
5 Errors.
Re: undefined symbol "COLOR_LIGHTGREEN -
Ironboy - 12.03.2011
try this
pawn Код:
if (strcmp("/help", cmdtext, true, 5) == 0)
{
SendClientMessage(playerid,0xFFFF00AA, "example");
}
Re: undefined symbol "COLOR_LIGHTGREEN -
BurgessGaming - 12.03.2011
that works mate thanks, how come COLOR_YELLOW wont work :/
Re: undefined symbol "COLOR_LIGHTGREEN -
ricardo178 - 12.03.2011
You could define all the color you use in the top of your script!
Re: undefined symbol "COLOR_LIGHTGREEN -
Ironboy - 12.03.2011
you should define it on the top of your script.
Note that it should be below the include
Re: undefined symbol "COLOR_LIGHTGREEN -
BurgessGaming - 13.03.2011
all the colors are defined and below the include at the time of this post
Respuesta: undefined symbol "COLOR_LIGHTGREEN -
Alex_Obando - 13.03.2011
Do this after <a_samp>
#define COLOR_YELLOW 0xFFFF00AA
new COLOR_YELLOW;
Re: undefined symbol "COLOR_LIGHTGREEN -
tanush - 13.03.2011
i think i know why, for
pawn Код:
SendClientMessage(playerid, COLOR_YELLOW, "example");
you put one space then COLOR_YELLOW so it show be like this
pawn Код:
SendClientMessage(playerid,COLOR_YELLOW, "example");