SA-MP Forums Archive
Compile 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: Compile error (/showthread.php?tid=496558)



Compile error - SDLMMM - 22.02.2014

I've just moded my script ,it was working before last edit but when i start compiling it , compiler crach and gamemod.amx = 0ko

Код:
application that crached : pawncc.exe
error code : c0000005
000119ec



Re: Compile error - AlonzoTorres - 22.02.2014

Missing a bracket somewhere I'd say. Learn to script.


Re: Compile error - SDLMMM - 22.02.2014

hhh found it :3 thnx


Re: Compile error - MP2 - 23.02.2014

Quote:
Originally Posted by AlonzoTorres
Посмотреть сообщение
Missing a bracket somewhere I'd say. Learn to script.
Missing brackets doesn't mean you're bad at scripting. It is a very easy mistake to make.

The best way to avoid missing brackets is to type them out first then fill them in, like so:

pawn Код:
if()
{

}



Re: Compile error - Scenario - 23.02.2014

Or, indent properly. Indentation is KEY to being a good scripter.

pawn Код:
{
{
{
{
{
{
{
{
}
}
}
}
}
}
}
Is hard to find where the error is.

pawn Код:
{
    {
        {
            {
                {
                    {
                        {
                            {
                            }
                        }
                    }
            }
        }
    }
}
It's way easier there.