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



Script Ending Error - God'Z War - 18.08.2012

Hi Guys,
Plz Help Me TO Solve This Error
Код:
C:\Users\hp\Desktop\Server\filterscripts\SA-MP.pwn(518) : warning 217: loose indentation
C:\Users\hp\Desktop\Server\filterscripts\SA-MP.pwn(658) : error 030: compound statement not closed at the end of file (started at line 94)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
This Is The Scirpt Which I Got Error
Last Ending Script
pawn Код:
if(dialogid == DIALOGID7+18 && response)
        {
            switch(listitem)
            {
                case 0:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 1:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 2:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 3:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 4:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 5:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 6:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 7:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 8:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 9:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 10:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
            }
        }
        return 1;
    }
    return 0;
}



Re: Script Ending Error - SA-MPDrifter - 18.08.2012

pawn Код:
if(dialogid == DIALOGID7+18 && response)
{
    switch(listitem)
    {
    case 0:
    {
        GivePlayerWeapon(playerid, 0, 5000);
    }
    case 1:
    {
        GivePlayerWeapon(playerid, 0, 5000);
    }
    case 2:
    {
        GivePlayerWeapon(playerid, 0, 5000);
    }
    case 3:
    {
        GivePlayerWeapon(playerid, 0, 5000);
    }
    case 4:
    {
        GivePlayerWeapon(playerid, 0, 5000);
    }
    case 5:
    {
        GivePlayerWeapon(playerid, 0, 5000);
    }
    case 6:
    {
        GivePlayerWeapon(playerid, 0, 5000);
    }
    case 7:
    {
        GivePlayerWeapon(playerid, 0, 5000);
    }
    case 8:
    {
        GivePlayerWeapon(playerid, 0, 5000);
    }
    case 9:
    {
        GivePlayerWeapon(playerid, 0, 5000);
    }
    case 10:
    {
        GivePlayerWeapon(playerid, 0, 5000);
    }
        return 1;
    }
    return 0;
}



Re: Script Ending Error - God'Z War - 18.08.2012

Hmm i need the script with same spaces other ways it will not work
Like This
pawn Код:
if(dialogid == DIALOGID7+18 && response)
        {
            switch(listitem)
            {
                case 0:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 1:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 2:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 3:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 4:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 5:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 6:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 7:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 8:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 9:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 10:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
            }
        }
        return 1;
    }
    return 0;
}



Re: Script Ending Error - SA-MPDrifter - 18.08.2012

pawn Код:
if(dialogid == DIALOGID7+18 && response)
        {
            switch(listitem)
            {
                case 0:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 1:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 2:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 3:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 4:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 5:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 6:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 7:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 8:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 9:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
                case 10:
                {
                    GivePlayerWeapon(playerid, 0, 5000);
                }
        return 1;
    }
    return 0;
}
Note that the spacing of the lines means nothing of importance, it's just a much better access for finding issues.


Re: Script Ending Error - God'Z War - 18.08.2012

Problem Solved