SA-MP Forums Archive
Compiling Error - 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: Compiling Error (/showthread.php?tid=391505)



Compiling Error - Red_Dragon. - 10.11.2012

Error:
pawn Код:
C:\Users\Mody\Desktop\Yea.pwn(49) : error 017: undefined symbol "COLOR_BLUE"
C:\Users\Mody\Desktop\Yea.pwn(49) : error 017: undefined symbol "by"
C:\Users\Mody\Desktop\Yea.pwn(49) : error 017: undefined symbol "Red_Dragon"
C:\Users\Mody\Desktop\Yea.pwn(49) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
and the code:
pawn Код:
SendClientMessage(playerid, COLOR_BLUE, Made by Red_Dragon (Dan));



Re: Compiling Error - Jarnu - 10.11.2012

Where are your " " marks?
pawn Код:
SendClientMessage(playerid, COLOR_BLUE," Made by Red_Dragon (Dan)");



Re: Compiling Error - Konstantinos - 10.11.2012

pawn Код:
// At the top, under includes
#define COLOR_BLUE 0x0000FFFF

// Strings should be inside " ", in example:
{
    SendClientMessage(playerid, COLOR_BLUE, "It won't give errors!");
    return 1;
}



Re: Compiling Error - Red_Dragon. - 10.11.2012

opps! now this:
pawn Код:
C:\Users\Mody\Desktop\Yea.pwn(50) : warning 217: loose indentation
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
and the code:
pawn Код:
{
         SendClientMessage(playerid, COLOR_BLUE," Made by Red_Dragon (Dan)");
        return 1;
    }



Re: Compiling Error - Jarnu - 10.11.2012

You have not defined your COLOR_BLUE, so define it and fix your indentation to remove warning
pawn Код:
#define COLOR_BLUE 0x0000FFFF



Re: Compiling Error - Red_Dragon. - 10.11.2012

Thanks you two "+REP"


Re: Compiling Error - Veeco - 10.11.2012

SendClientMessage(playerid, COLOR_BLUE, "Made by Red_Dragon (Dan)");
And Add The Define Jarnu Said
#define COLOR_BLUE 0x0000FFFF