SRL Archive - OSR Help

FindObjCustom?


Hexless

2013-02-10 11:50:50

Hey I'd like to know how come when i attempt to type this (FindObjCustom) it doesn't work :z it says its invalid or something along those lines im not sure if i have to add it but it would be great if someone could help me cheers

Sjoe

2013-02-10 11:51:56

post the error you have, and function .

I have a hunch that your parameters are wrong.

Hexless

2013-02-10 12:11:31

From: Sjoekeloe
post the error you have, and function .

I have a hunch that your parameters are wrong.


[ATTACH=CONFIG]19073[/ATTACH]

Sjoe

2013-02-10 12:21:51

Ok check this:

- U forgot to include SRL, cause it's a SRL function.
- Your parameters were wrong.
- The Text and color parameters need brackets! [ ] Because they are Arrays.
U can use CTRL + Space on the function to check the parameters or use
the functionlist left of SIMBA


program New;
{$i SRL\SRL.simba} // include SRL

procedure FindTheObj;
var
x, y: integer;
begin
if FindObjCustom(x, y, ['Up', 'Text'], [143143,154356], 15) then blablabal;
end;

begin
SETUPSRL; // don't forget this!
Findtheobj;
end.

Hexless

2013-02-10 12:24:13

ooooooooo tysm :)

Hexless

2013-02-10 12:39:19

From: Sjoekeloe
Ok check this:

- U forgot to include SRL, cause it's a SRL function.
- Your parameters were wrong.
- The Text and color parameters need brackets! [ ] Because they are Arrays.
U can use CTRL + Space on the function to check the parameters or use
the functionlist left of SIMBA


program New;
{$i SRL\SRL.simba} // include SRL

procedure FindTheObj;
var
x, y: integer;
begin
if FindObjCustom(x, y, ['Up', 'Text'], [143143,154356], 15) then blablabal;
end;

begin
SETUPSRL; // don't forget this!
Findtheobj;
end.



i get this error now Exception in Script: Operator expected at line 453, column 93 in file "C:\Simba\Includes\SRL\SRL\core\gametab.simba"

NKN

2013-02-10 12:43:24

Are you running gametab.simba, or the actual script?

Hexless

2013-02-10 12:51:38

From: NKN
Are you running gametab.simba, or the actual script?


I just clicked the run (the green arrow)

NKN

2013-02-10 12:53:40

From: Hexless
I just clicked the run (the green arrow)


Which file did you run?
Gametab.simba
Or your script?

Hexless

2013-02-10 12:59:29

my script

Hexless

2013-02-10 13:01:19

From: NKN
Which file did you run?
Gametab.simba
Or your script?


nvm fixed it ty tho

pennengr

2013-02-10 17:03:42

How did you fix the gametab error? I am having that problem as well, but not with any particular script.

Hexless

2013-02-13 10:21:55

From: pennengr
How did you fix the gametab error? I am having that problem as well, but not with any particular script.


This is what i did to fix it

Go to the dropdown thing that says script then go to interpreter then make sure its on PascalScript then it should work (it did for me)