SRL Archive - General

[Runtime Error] : Exception: Access violation at address 00650650 in module 'scar.exe


Bacaw

2007-05-15 13:27:09

ok i ran my script and when it came to a bitmap, this error came up;

[Runtime Error] : Exception: Access violation at address 00650650 in module 'scar.exe'. Read of address 00000000 in line 66 in script C:\Program Files\SCAR 2.03\Scripts\smither first.scar

anyone have any ideas?

if you want to see the script i can post it here (it is quite long)

ty

Pentti

2007-05-15 13:44:41

Yeah, if you posted the script here, it would help.

Buckleyindahouse

2007-05-15 14:03:47

Yea, cant do too much without a script buddy :).

Bacaw

2007-05-16 12:00:37

program Smither;
{.include SRL/SRL.scar}
begin
HowManyPlayers :=1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer:=0;

Players[0].Name :='xxxx';
Players[0].Pass :='xxxxxxxxx';
Players[0].Nick :='aca';
Players[0].Loc :='al-kharid';
Players[0].Skill:='smithing';
Players[0].Active:=True;
if loggedin = false then
begin;
loginplayer;
end;
if loggedin = true then
loginplayer;
wait(400);
Bankscreen;
if bankscreen = false then
openbank;
openbank3;
wait(1000);
if pinscreen = true then
begin
writeln('pinscreen found');
wait(200);
inpin('xxxx')
end;
if pinscreen = false then
begin;
writeln('pinscreen not found');
end;
wait(500);
withdraw(1,1,9);
Withdraw(01,01,09);
end.

omgh4x0rz

2007-05-16 14:21:36

that's not the whole script, is it?

Pentti

2007-05-16 15:20:06

Add SetUpSRL; in the script, before declaring players, also check out for some tutorials about scripting standards…

Bacaw

2007-05-17 06:10:51

ty

Jake_453

2007-05-18 23:07:59

hey i get the same problem, im useing scar 3.6 too.

EDIT: i just found out that i get this error whenever i try to free a bitmap…hmmm weird