rotchy1
2012-03-12 00:07:56
Im getting this error in my debug
"[Error] (169:74): Unknown identifier 'aFound' at line 168
Compiling failed.
(line 168 below if it helps)
if FindDTMRotated(dtm, x, y, MSX1, MSY1, MSX2, MSY2, -Pi, Pi, Pi/30, aFound) then
i declared my dtm as "dtm" and im using this procedure to find a gate to open, but cant figure out what aFound is…?
thanks in advance for help!
x[Warrior]x3500
2012-03-12 00:24:40
declare the variable aFound locally
rotchy1
2012-03-12 00:32:52
now im getting another error and it doesnt make sense…here is the error and the procedure is right below it.
[Error] (165:3): Semicolon (';') expected at line 164
Compiling failed.
procedure OpeningGate;
var OpenGate, dtm,x, y: integer;
var aFound: T2DExtendedArray
begin
dtm := DTMFromString('m6wAAAHic42ZgYHgHxN+AmI2RgeEPkBYA0q+A9AsgvgbEZ6H4AhBbA+UModiBEcIH0UZQbA7ENlAxbxdLBk9bDQzsba+Jwf4PNJuLSMxIAkYCAGirE5w=');
Repeat
inc(OpenGate);
Wait(100 + random(50));
if FindDTMRotated(dtm, x, y, MSX1, MSY1, MSX2, MSY2, -Pi, Pi, Pi/30, aFound) then
MMouse(x, y, 5, 5);
until (IsUpTextMultiCustom(['Open'])) or (OpenGate > 3);
if IsUpText('Open')then
begin
ClickMouse2(True);
sleep(500 + random(500));
repeat
wait(50 + random(25));
until (IsMoving = false);
wait(500 + random (500));
FindNormalRandoms;
end;
end;
x[Warrior]x3500
2012-03-12 00:34:25
procedure OpeningGate;
var OpenGate, dtm,x, y: integer;
aFound: extended;
rotchy1
2012-03-12 00:37:42
*facepalm* just figured that out…thanks :)