SA-MP Forums Archive
how to fix this 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: how to fix this error (/showthread.php?tid=521114)



how to fix this error - ReD_DeVi - 21.06.2014

when i added many rank it shows error rank means admins position before it was 6 so i added till 10

Код:
C:\Users\aman\Desktop\SATDM~RP V14\Gamemodes\SATDM_v14.pwn(25503) : error 001: expected token: ":", but found ";"
C:\Users\aman\Desktop\SATDM~RP V14\Gamemodes\SATDM_v14.pwn(25503) : error 036: empty statement
C:\Users\aman\Desktop\SATDM~RP V14\Gamemodes\SATDM_v14.pwn(25506) : warning 209: function "GetRankFromLevel" should return a value
C:\Users\aman\Desktop\SATDM~RP V14\Gamemodes\SATDM_v14.pwn(25507) : error 054: unmatched closing brace ("}")
C:\Users\aman\Desktop\SATDM~RP V14\Gamemodes\SATDM_v14.pwn(25508) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
help me


Re: how to fix this error - Vanter - 21.06.2014

show lines


Re: how to fix this error - ReD_DeVi - 21.06.2014

25503

Код:
case 10;
		{
		    Rank = "Server Management";
  		}
    }
    return Rank;
}
25506

Код:
	}
25007 and 25008

Код:
}
    return Rank;



Re: how to fix this error - Vanter - 21.06.2014

pawn Код:
case 10:
{
        Rank = "Server Management";
    }
    return Rank;
}

//for line 25506, add "return 1;" before closing the bracket

//and for lines 25007 and 25008, match the opening brackets { and the closing brackets } to make them equal



Re: how to fix this error - ReD_DeVi - 21.06.2014

Thank You