Code:
if (FindBitmapToleranceIn(ore, x, y, MIX1, MIY1, MIX2, MIY2, 10)) then
begin
repeat
failtwo:=(failtwo+1)
wait(350+random(200));
Case (random(200)) of
1..2: mmouse(x-64, y-146, 90, 40);
2..3: mmouse(x+116, y+15, 30, 60);
4..5: mmouse(x+326, y-353, 90, 90);
6..7: mouse(531, 96, 5, 5, true);
8..9: mouse(531, 63, 5, 5, true);
end;
writeln('Failed:' +toStr (failtwo));
until((failtwo>50) or findbitmaptoleranceIn(ore, x, y, MIX1, MIY1, MIX2, MIY2, 10, False));
end;
[Error] (438:92): Invalid number of parameters at line 437
This is the error - line 438 is 'until' statement.
Thanks for the help though, ill use a break until i get it sorted (Still don't understand how to make it stop if it cannot find the ore using 'findbitmaptoleranceIn' though)