SRL Archive - General Botting Help

I'm stuck 'Expected assignment'


yankees

2013-03-09 05:16:59

Hello,

I'm stuck on line 45 and it says: [Error] C:\Users\Simen\Downloads\[07] AIO Fighter Release [0.1].simba(46:4): Assignment expected at line 45
Compiling failed.

The code:

———-

begin
x, y integer;

———
Im trying my best to learn SRL and figure out these problems, but without help I can't.. Anyone?

Thanks so much :)

Sincerely

Sjoe

2013-03-09 05:25:29

From: yankees
Hello,

I'm stuck on line 45 and it says: [Error] C:\Users\Simen\Downloads\[07] AIO Fighter Release [0.1].simba(46:4): Assignment expected at line 45
Compiling failed.

The code:

———-

begin
x, y integer;

———
Im trying my best to learn SRL and figure out these problems, but without help I can't.. Anyone?

Thanks so much :)

Sincerely


should be:



{for global variables: outside the procedures}
var
x, y: integer;

---------------------
{for local variables: declared INSIDE the procedures}
procedure Example;
var
x, y: integer;

begin
end;

I recommend Coh3n's beginner tutorial as a read to basic Pascal. He explains it very well there.

yankees

2013-03-09 05:29:08

Now it asks for an identifier at the variable.

begin
var
x, y: integer;

EDIT: I have tried to end the begins according to coh3ns tutorial and other solutions he has for identifier expected errors..

Sjoe

2013-03-09 05:35:45

From: yankees
Now it asks for an identifier at the variable.

begin
var
x, y: integer;

EDIT: I have tried to end the begins according to coh3ns tutorial and other solutions he has for identifier expected errors..


as u see on my previous post, the begin is AFTER the variables are declared.
But if you are using global variables (these will be used through-out the script),
it will not need a BEGIN END; statement.