Log in

View Full Version : unknown identifier, hopefully someone can help me with this...



rotchy1
03-12-2012, 04:07 AM
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
03-12-2012, 04:24 AM
declare the variable aFound locally

rotchy1
03-12-2012, 04:32 AM
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+UModiBEcIH0UZQbA7ENlAxbxdLBk9b DQzsba+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
03-12-2012, 04:34 AM
procedure OpeningGate;
var OpenGate, dtm,x, y: integer;
aFound: extended;

rotchy1
03-12-2012, 04:37 AM
*facepalm* just figured that out...thanks :)