
Originally Posted by
pwnedbymeh
Simba gives this error when i try to run my script: Semicolon (';') expected at line 89
Compiling failed.
Try this 
Simba Code:
procedure eat;
var //<-- line 89
x, y, salmon: Integer;
begin
salmon := DTMFromString('mkwEAAHicE2ZgYOAFYhYgZgZiNgYI4ABibiDmB2IhIBYFYgkglgFiSShbFCoHUsMDxFxQWhwqxgtVIw6lhZHUckLtYobaB7ObBUqD5LfYgXQxUglTD1DLRThcBQCvuQMw');
If findDTM (salmon, X, Y, MSX1, MSY1, MSX2, MSY2) then
Writeln('Found salmon');
MMouse(x, y, 3, 3);
If IsUpText('at salm') Then
Writeln('Eating salmon');
Mouse(x, y, 0, 0, True);
end;
Alright. I'll go through what I edited to make it work.
Line 78 - You need a semi-colon after your procedure name.
Line 80 - You needed to add x and y to your variables, unless they're in your global variables.
Line 84 - You needed a then after it instead of a semi-colon.
Line 85 - It's not 'Writein' it's 'WriteLn'. It has an L in there instead of the I. You also needed a semi-colon after it. The only time it doesn't need one is when it's only one line.
Line 86 - Needed semi-colon after.
Line 88 - Needed a closing bracket after the '. Also needed a semi-colon.
Line 89 - Needed a semi-colon.
Line 90 - You don't end a procedure with a :, you also place a semi-colon after end unless you're using end else.
Hope this cleared it up for you. Good luck!