why do i get this error
Code:
Line 82: [Error] (15429:1): comma (',') expected in script
in
SCAR Code:
Procedure Magiclvl;
var Mlvl: integer;
begin;
if(not loggedin)then exit;
gametab(2);
MLvl := GetSkillInfo('Magic',False);
writeln('Your Magic Level is '+(inttostr(MLvl))
if (MLvl <= 25) then TransportLocation:='Varrock' else;
if (MLvl <= 31) then TransportLocation:='Lumbridge' else;
if (MLvl <= 37) then TransportLocation:='Falador' else;
if (MLvl <= 45) then TransportLocation:='Camelot' else;
if (MLvl <= 51) then TransportLocation:='Ardougne';
end;
then i comment out the writeln and it says semicolon expected help lease anyone
i cant see where i have missed anything