ok when im trying to find DTM i find the bank dtm then when i go to find the tree dtm i get this error why plz..??
SCAR Code:
SRL Compiled in 20 msec
found bank dtm
[Runtime Error] : Exception: Access violation at address 006D691C in module 'scar.exe'. Read of address 00000000 in line 73 in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Core/Color.scar
thius is the color.scar
SCAR Code:
function DTMRotated(DTM: Integer; var x, y: Integer; x1, y1, x2, y2: Integer): Boolean;
var
t, s, AngleFound: Extended;
begin
if (FindDTM(DTM, x, y, x1, y1, x2, y2)) then//<------------Line73???
begin
Result := True;
Exit;
end;
repeat
s := 0.3;
repeat
if (FindDTMRotated(DTM, x, y, x1, y1, x2, y2, 0 - t, 0 + t, s, AngleFound)) then
begin
Result := True;
Exit;
end;
s := s - 0.1;
until (s <= 0.1);
t := t + (Pi / 20);
until (t >= Pi / 3);
end;
and my tree procedure..??
SCAR Code:
procedure gettotree;
begin
MakeCompass('N');
wait(1000);
if DTMRotated(Tree, x, y, MMX1, MMY1, MMX2, MMY2) then
begin
Writeln ('found Tree dtm');
wait(1000)
Mouse(x, y, -5, -5, true);
FFlag(0);
end;
FreeDTM(Tree);
end;
any help plz thanx in advance scaper