SRL Archive - General Botting Help

Why is script not compiling?


Qfm

2014-08-22 21:40:23

[SIMBA=program new;
procedure eat;
begin
movemouse(38, 48)
clickmouse(38, 48, 0)
end
begin
eat;
end. ]

Exception in Script: Operator expected at line 5, column 3

slacky

2014-08-22 21:43:43

You will have to share the script, but from the sound of it you are lacking an operator at line 5 for it to compile, which the error obviously states..

Qfm

2014-08-22 21:47:15

From: slacky
You will have to share the script, but from the sound of it you are lacking an operator at line 5 for it to compile, which the error obviously states..


ok

program new;
procedure eat;
begin
movemouse(38, 48)
clickmouse(38, 48, 0)
end
begin
eat;
end.

slacky

2014-08-22 22:07:04

From: Qfm
ok

program new;
procedure eat;
begin
movemouse(38, 48)
clickmouse(38, 48, 0)
end
begin
eat;
end.

You where missing (two/)three semi-colons.

procedure Eat;
begin
MoveMouse(38, 48); //here
ClickMouse(38, 48, 0); //here (this one is alternative: but good practice)
end; //here

begin
Eat;
end.

The alternative one is because it's the last operation before "end;"

Qfm

2014-08-22 23:44:48

From: slacky
You where missing (two/)three semi-colons.

procedure Eat;
begin
MoveMouse(38, 48); //here
ClickMouse(38, 48, 0); //here (this one is alternative: but good practice)
end; //here

begin
Eat;
end.

The alternative one is because it's the last operation before "end;"


thnx u

Qfm

2014-08-23 00:01:15

@slacky Hey Um is there a way to make simba use a smart thats already there?

Qfm

2014-08-23 00:04:59


slacky

2014-08-23 00:06:41

From: Qfm
@slacky Hey Um is there a way to make simba use a smart thats already there?

Yes, look at the guides regarding SRL

Qfm

2014-08-23 00:21:46

From: slacky
Yes, look at the guides regarding SRL


Why isn't this compiling?

[ATTACH=CONFIG]23890[/ATTACH]

thanks for all ur help so far btw

Line 25: if FindColorSpiralTolerance(x, y, 5800628, 103, 3, 445, 368) then
Error: Exception in Script: Don't know which overloaded method to call with params (Int32, Int32, Int32, Int32, Int32, Int32, Int32) at line 25, column 4

Turpinator

2014-08-23 00:56:43

oh. my. ff-ing. god.
for the last time.
tabs.
syntax.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

learn these, then code. read a tutorial.
as you were told multiple times before and get off your horse.

there is no findcolorspiraltolerance function with 7 integer parameters. theres one with 8 which you can view with the function list. theres one with 4 integers and one tbox. and then theres one 4 integers, 1 tbox, and 1 tcolorsettings.

Qfm

2014-08-23 01:46:45

From: Turpinator
oh. my. ff-ing. god.
for the last time.
tabs.
syntax.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

learn these, then code. read a tutorial.
as you were told multiple times before and get off your horse.

there is no findcolorspiraltolerance function with 7 integer parameters. theres one with 8 which you can view with the function list. theres one with 4 integers and one tbox. and then theres one 4 integers, 1 tbox, and 1 tcolorsettings.


idk what you're talking about; as u havent helped me solved the thing; all u did was troll me really hard in chat yesterday when you couldve just said I was missing a ; like the helpful person above

Hoodz

2014-08-23 04:43:22

From: Qfm
idk what you're talking about; as u havent helped me solved the thing; all u did was troll me really hard in chat yesterday when you couldve just said I was missing a ; like the helpful person above


He did help you..?

Qfm

2014-08-23 07:08:33

From: hoodz
He did help you..?


no he was making fun of me in chat

Justin

2014-08-23 07:10:24

From: Turpinator
oh. my. ff-ing. god.
for the last time.
tabs.
syntax.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

learn these, then code. read a tutorial.
as you were told multiple times before and get off your horse.

there is no findcolorspiraltolerance function with 7 integer parameters. theres one with 8 which you can view with the function list. theres one with 4 integers and one tbox. and then theres one 4 integers, 1 tbox, and 1 tcolorsettings.


Be nice….

Hoodz

2014-08-24 11:35:57

From: Justin
Be nice….


Well well well justin returned.

Sjoe

2014-08-24 12:18:39

From: Qfm
no he was making fun of me in chat


That's what he does :p

U probably want to avoid using movemouse and clickmouse since those will get you instant banned.

Use the srl include's ones.

Lipcot

2014-08-24 20:36:18

@qfm I recommend you read TheMayors guides (both) on writing scripts, they are awesome explaining the basics of it and let you begin to understand the logic of writing a script, because it seems you havent read a thing and just went on with it! you are missing semicolons everywhere and using functions badly. Just throw that away and dedicate some hours to understand, because if you ask everything without trying to learn, it will be no good for you

The Spark

2014-08-24 21:18:06

From: Qfm
idk what you're talking about; as u havent helped me solved the thing; all u did was troll me really hard in chat yesterday when you couldve just said I was missing a ; like the helpful person above



From: Qfm
he was making fun of me in chat





From: Turpinator
oh. my. ff-ing. god.
for the last time.
tabs.
syntax.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

learn these, then code. read a tutorial.
as you were told multiple times before and get off your horse.

there is no findcolorspiraltolerance function with 7 integer parameters. theres one with 8 which you can view with the function list. theres one with 4 integers and one tbox. and then theres one 4 integers, 1 tbox, and 1 tcolorsettings.



Qfm it seems you don't know what help looks like, so I have specifically outlined it for you. If you still don't know what's going on, well. :p

slacky

2014-08-25 07:00:52

From: Qfm
Why isn't this compiling?

[ATTACH=CONFIG]23890[/ATTACH]

thanks for all ur help so far btw

Well, you have some pretty bad "standards" there :p You should indent (pad with two spaces) for each "begin <padded code> end;" then unindent after then end-keyword. Such also goes for other keywords like var and const.. and such, even tho thise does not end with "end", they and with the next keyword (begin, function, procedure, type, etc).

var
x,y:Integer;
const
a,b:Integer;
begin
if a=b then
begin
doSometing();

if x=y then
begin
WriteLn('Hello world');
DoSomethingWith(x,y);
end;
end;
end;
What people have suggested here is something you should looking in too, (but it's all up to you,) but don't except am to stop bothering you about it, until you got somewhat more proper "standards" in your script.


As for your problem, you have not filled in the Tolerance-parameter (the last one).
FindColorSpiralTolerance(var x,y: Integer; Color, x1,y1,x2,y2, Tolernace:Integer);

It's not that hard to decode most of the error-messages your self. This case should be very easy: it says that there is no function under that name (FindColorSpiralTolerance) which takes those exact parameters, and knowinmg that you can look up the function in the docs (http://docs.villavu.com/simba/scriptref/colourfinding.html#findcolorspiraltolerance) and you see that you are actually missing the last parameter.

Or, you can use the function-list (in Simba) for this as well.



On another note, I want to mention that each single end should end with a semicolon: end;. Just because something might run, doesn't mean it's "correct", lol. The only exception is the last end of a script, that one should end with a period: end., as nothing after that period should be executed.

Example (regarding the last "end" in a script).
This will run without any issues:

program Asd;
begin
WriteLn('hello world');
end.

What the fuck is up!?? :D
But the following will fail:

program Asd;
begin
WriteLn('hello world');
end //You can append a ";", doesn't matter. Full-stop or null stop, simple as that :P

What the fuck is up!?? :D