why do i keep getting this error:
SCAR Code:
[Runtime Error] : Exception: Access violation at address 006D691C in module 'scar.exe'. Read of address 00000000 in line 48 in script C:\Program\SCAR 3.15\Scripts\cooker.scar
in the following script?
SCAR Code:
program GEAutoCooker;
{.include srl/srl.scar}
const
Banker = 12506324;
Banker2 = 1342631;
var
willowlogs,tuna,x,y:integer;
procedure LoadDTMS;
begin
willowlogs := DTMFromString('78DA63DCC5C0C090C380025C6D25C0342394C' +
'FB80A48E432A001465435EB80442A01359B814405013547804431' +
'01358781440611E610720FC8EF65F8D500005AF909E8');
tuna := DTMFromString('78DA637CC2C0C090C3800296CD9E05A619A17' +
'CC607402283010D30A2AAB903242A08A87901244A08A8790F2432' +
'09A8790324D208A8B909240A08A8794484398F08FB0B007F1A0DD' +
'3');
FreeDTM(willowlogs);
FreeDTM(tuna);
end;
procedure openiningbank;
begin
makecompass('n');
setangle(true);
if(FindObj(x, y, 'Bank', Banker, 20))then
begin
writeln('Found banker, going to open bank');
wait(500);
Mouse(x, y, 5, 5, false);
chooseoption('ker');
wait(500+random(100));
if bankscreen=true then
writeln('Mission accomplished!!Bank opened');
wait(500);
end;
end;
procedure takingout;
begin
deposit(2,28,true);
if FindDTM(willowlogs, x, y, MSx1, MSy1, MSx2, MSy2) then
begin
writeln('found logs, gonna take em out.');
wait(700);
mouse(x, y, 5, 5, true);
end;
if finddtm(tuna, x, y, MSx1, MSy1, MSx2, MSy2) then
begin
writeln('found tuna,yum yum, gonna take em out.');
wait(700);
mouse(x, y, 5, 5, false);
chooseoption('All');
wait(500);
closebank;
end;
end;
procedure cooking;
begin
end;
begin
SetupSRL;
Activateclient;
cleardebug;
LoadDTMS;
wait(200);
openiningbank;
wait(2000+random(500));
takingout;
wait(1000);
cooking;
end.