SRL Archive - OSR Help

Problem with pascal


Hasselihas

2014-08-06 18:50:45

Have been doing some noob level coding in Lape and now I want to change into pascal. However when I try to run something in pascal is simply gives me this error and pops the SRL
[Error] C:\Simba\Includes\SRL-OSR\SRL.Simba(8:113): Semicolon (';') expected at line 8
Compiling failed.

Here is an example of the code that I'm trying to run:
program Test
{$DEFINE SMART8}
{$I SRL-OSR/SRL.Simba}
{$I SRL-OSR\SRL\misc\SmartGraphics.simba}

procedure Paint;
var
dot: Tpoint;
begin
dot := IntToPoint(300, 150);
SMART_DrawDot(false, dot, 6711039);
end;

begin
ClearDebug;
setupSRL;
Paint;
wait(5000);
end.
I am also curious which one works/is better for OSRS Lape or Pascal?

The Mayor

2014-08-06 18:59:19

From: Hasselihas
snip


program Test;

Hasselihas

2014-08-06 19:03:44

From: The Mayor
program Test;


Lmao, so it requires that in pascal. Well thanks a lot :)

rj

2014-08-06 19:07:23

From: Hasselihas
Lmao, so it requires that in pascal. Well thanks a lot :)


You don't even need that at the top if you don't want it

Hasselihas

2014-08-06 19:15:46

From: Robert
You don't even need that at the top if you don't want it


The program part?

rj

2014-08-06 19:27:09

From: Hasselihas
The program part?


yea