Log in

View Full Version : Invalid # Of Parameters



lilcmp1
12-23-2011, 12:47 AM
Problem #2

Trying to right click a copper DTM from bank screen but it hasn't responsed 'yay' so I'm assuming it didn't find the DTM, anything I can do?
Just need pointed in the right direction. First it said DTM wasn't freed so I added the FreeDTM.



Function Copp:Boolean;
var
SeX, SeY, CopDTM: Integer;

Begin
FreeDTM(CopDTM);
CopDTM := DTMFromString('mggAAAHicY2NgYBBkZGCQA+L/QLY4kOaC4hlAPBmI5wHxQiDuAuLlQLwr0xyokhELxg6wqUSoBg BciAZr');
If FindDTM(CopDTM, SeX, Sey, 1, 1, 500, 300) Then
Begin
Writeln('YAY')
Mouse(SeX, SeY, 5, 5, False);
End;
End;

YoHoJo
12-23-2011, 12:49 AM
Too many parametres in your WaitOptionMultii. Also you put a string instead of TStringArray
Should just be
WaitOptionMulti(['Use-qu', 'Bank'], 200)

I think that will work now?
I see you watched my tutorials seXseY :D

lilcmp1
12-23-2011, 12:55 AM
Too many parametres in your WaitOptionMultii. Also you put a string instead of TStringArray
Should just be
WaitOptionMulti(['Use-qu', 'Bank'], 200)

I think that will work now?
I see you watched my tutorials seXseY :D

Success! And yes I've been watching your tutorials lol. It's much more fun to say sexy. Now I'm just trying to see if I can translate some of what you taught to smithing :P