here is function...
SCAR Code:
function CountItemsDTMs(DTM : TIntegerArray; Including : Boolean) : Integer;
var r : LongInt; Item : TBox; I : Integer;
begin
if not LoggedIn then Exit;
GameTab(4);
Wait(500);
for r := 1 to 28 do
begin
if GetInvItemBounds(r, Item) then
for I := 0 to High(DTM) do
begin
if Including then
begin
if FindDTM(DTM[I], x, y, Item.x1, Item.y1, Item.x2, Item.y2) then //line 379
Inc(Result);
end
else
begin
if not FindDTM(DTM[I], x, y, Item.x1, Item.y1, Item.x2, Item.y2) then
Inc(Result);
end;
FreeDTM(DTM[I]);
end;
end;
end;
here is error
Code:
[Runtime Error] : Exception: Access violation at address 006D691C in module 'scar.exe'. Read of address 00000000 in line 379 in script
help is appreciated and if you want it rep'd(for your cyberpenis...)