undefined symbol "COLOR_LIGHTGREEN
#1

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

try this
pawn Код:
if (strcmp("/help", cmdtext, true, 5) == 0)
    {
        SendClientMessage(playerid,0xFFFF00AA, "example");
    }
Reply
#3

that works mate thanks, how come COLOR_YELLOW wont work :/
Reply
#4

You could define all the color you use in the top of your script!
Reply
#5

you should define it on the top of your script.
Note that it should be below the include
Reply
#6

all the colors are defined and below the include at the time of this post
Reply
#7

Do this after <a_samp>

#define COLOR_YELLOW 0xFFFF00AA

new COLOR_YELLOW;
Reply
#8

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");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)