Log in

View Full Version : I am getting sick of this!!! just look at this for a problem!!!



deviney
05-31-2007, 12:58 PM
Hello again people,

Its me Deviney!

Just spent all yestarday figuring what was up with scar/SRL. when i finnaly got the SRL setup script to run correctly, i was chuffed lol.

I then though i would make a script but now i seem to get an error saying:

Line 11: [Error] (14760:49): Invalid number of parameters in script

another error....:mad: :mad:

ill put my script here for you to see and its only very basic as i have only just started it. please leave any helpful comments id be very grateful:)




program fishinglobbys;
{.include srl/srl.scar}


var fishy: Integer;
procedure findfish;
begin
fishy := BitmapFromString(1, 2, '88B0E9A8C8FF');
if(FindBitmap(fishy,x,y,100,MSX1,MSY1,MSX2,MSY2))t hen
begin
Mouse(x,y,2,2,true);
Writeln('found fish!');
end;
end;

begin
findfish
end.

codx1
05-31-2007, 01:28 PM
you got invalid number of parameters try this:

(FindBitmap(fishy,x,y))

deviney
05-31-2007, 01:30 PM
oo stupid me :( what about the find color one?

ermky
05-31-2007, 02:41 PM
I can see that you use scar 2.03 with srl 3.7 it might be the problem, use scar 3.6 with srl 3.7 and it should problaby work.

Bobarkinator
05-31-2007, 02:57 PM
SRL 3.7 was made for 2.03 so he's doing the right thing. All Freddy did was make 3.7 work with divi.

ermky
05-31-2007, 03:07 PM
Ohh really? :S Cause i got those errors when i ran scripts on scar 2.03 :P

Ramage
05-31-2007, 10:44 PM
oo stupid me :( what about the find color one?
You can either find the function params in SCAR manual(F1) and the SRL manual.

function FindColor(var x, y: Integer; color, xs, ys, xe, ye: Integer): Boolean;
Find color in box specified by xs, ys, xe, ye starting from left to right. Returns True if color found, the coordinates of the color if found is put in x,y.