I am writing a script and in it i have a procedure that checks the players combat and if it is 3 terminates the script (im sick of level 3 flax pickers). It is called in the set up player procedure and im getting this error:
This is the procedure im getting an error on:Line 33: [Error] (20286:1): Identifier expected in script (Path2Script)
Line 33 is else btw.PHP Code:procedure CheckCombat;
begin
if(GetCombatLevel = 3) then
Writeln('Your Combat level is 3 Noob.');
Writeln('Please Raise Your Combat Before Botting');
Writeln('Switching Players - lvl 3s are annoying');
TerminateScript;
else
Writeln('Combat is higher than 3 - Continuing Script');
Writeln('This procedure is part of anti noob - Feel free to leech');
end;
So its saying identifier expected at line 33 which is else. Anyone know what im doing wrong?




Reply With Quote






