You need a begin end after your else to do both lines:
You have:
SCAR Code:
procedure FindScarIcon;
begin
if (findcolor(x,y,Scaricon,0,3,15,16)) then
begin
writeln('Found the scar icon, hurray!')
line1;
End else
writeln('Sorry, the scar icon is hiding somewhere or your color color simlpy sucks');
line2;
end;
Needs to be:
SCAR Code:
procedure FindScarIcon;
begin
if (findcolor(x,y,Scaricon,0,3,15,16)) then
begin
writeln('Found the scar icon, hurray!')
line1;
End else
begin
writeln('Sorry, the scar icon is hiding somewhere or your color color simlpy sucks');
line2;
end;
end;