
Originally Posted by
kooldude
Line 127: [Error] (14898:23): Invalid number of parameters in script C:\Program Files\SCAR 3.06\Scripts\KoolDudes' Power Chopper v1.scar
I dont Know Why, Yes im not leeching, I tried looking at Jads's errors stickie, and Srl manual, i cant seem to get it to work hereit is..
SCAR Code:
/////////////////DropAge///////////////////////
Procedure Dropage;
var
x, y: integer;
begin
repeat
If FindDtm(x,y,OakLog)then
Mouse(x,y,2,2,false)
ChooseOption(x, y, 'rop')
Until (Not FindDTM(Oaklogs)
end;
fixed! You need a box to look for the DTM in, and the DTM does come first, then the variables, then the coords box:
SCAR Code:
Procedure Dropage;
begin
repeat
If (FindDtm(OakLog,x,y,MSX1,MSY1,MSX2,MSY2))then
begin
Mouse(x,y,2,2,false);
ChooseOption(x,y,'rop');
end;
until(not(FindDTM(OakLog,x,y,MSX1,MSY1,MSX2,MSY2)))
end;
That would look for the DTM on the main screen. And also, like I did here, if your doing more then 1 thing after a then, you need a then begin, do stuff, end;
Edit: Ralf, both uses of finding the DTM are wrong actually