SRL Archive - OSR Help

What am I doing wrong?


WeBot4u

2013-04-05 16:47:52

FindObj (x, y, 'ank', 261, 133);
if Findobj (x, y, 'ank', 261, 133); then
begin
It says that don`t have then but I do and when I try to change it it says something with parameters.
First day of trying out this stuff please help?

The Mayor

2013-04-05 16:52:28

From: WeBot4u
FindObj (x, y, 'ank', 261, 133);
if Findobj (x, y, 'ank', 261, 133); then
begin
It says that don`t have then but I do and when I try to change it it says something with parameters.
First day of trying out this stuff please help?


I don't quite understand what you are saying? It says you don't have what?

WeBot4u

2013-04-05 16:54:39

Oh wow such a fail it says I don`t have "THEN" in my line but I do.

The Mayor

2013-04-05 16:57:29

From: WeBot4u
Oh wow such a fail it says I don`t have "THEN" in my line but I do.


Because you have a ';' before the 'then' so it doesn't recognise it as the same statement :)

WeBot4u

2013-04-05 17:10:39

Thanks but now I have this problem:
Procedure ChopTree;

Identifier ":" expected

Could you help?

superuser

2013-04-05 17:12:42

From: WeBot4u
Thanks but now I have this problem:
Procedure ChopTree;

Identifier ":" expected

Could you help?


procedure ChopTree();

NKN

2013-04-05 17:13:27

From: WeBot4u
Thanks but now I have this problem:
Procedure ChopTree;

Identifier ":" expected

Could you help?

Can you post the lines above and below that, as well as the error lines in simba tags?

WeBot4u

2013-04-05 17:28:35

Procedure GoBank;

Identifier ":" expected

I already tried procedure GoBank();

NKN

2013-04-05 18:22:54

From: WeBot4u
Procedure GoBank;

Identifier ":" expected

I already tried procedure GoBank();

Please post the code above and below it as well