SRL Archive - Help

Invalid # Of Parameters


lilcmp1

2011-12-22 19:47:49

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/QLY4kOaC4hlAPBmI5wHxQiDuAuLlQLwr0xyokhELxg6wqUSoBgBciAZr');
If FindDTM(CopDTM, SeX, Sey, 1, 1, 500, 300) Then
Begin
Writeln('YAY')
Mouse(SeX, SeY, 5, 5, False);
End;
End;

YoHoJo

2011-12-22 19:49:22

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

2011-12-22 19:55:37

From: YoHoJo
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