SRL Archive - General

Can someone help me with this?


fre

2008-08-27 12:24:34

[Runtime Error] : Exception: Access violation at address 0051C0EC in module 'scar.exe'. Write of address 0DCA7210 in line 102 in script D:\lol\scar\SCAR 3.15\includes\SRL/SRL/Core/Players.scar

My script runs perfect, then when it logs out and want to log back in it gives me this runtime error.
The problem starts when i check if the character is logged in.

So " if loggedin" gives me some problems
This is what i have included
{.include srl/srl/misc/Smart.scar}
{.include srl/srl.scar}
{.include srl/srl/skill/prayer.scar}

I don't know what i can do to solve this problem

Any suggestions?

Thx

boberman

2008-08-27 12:29:06

have to see the script, but I am guessing you have the "HowManyPlayers" variable setup incorrectly. The program is probably trying to switch to a player that doesn't exist.

fre

2008-08-27 13:10:49

" if loggedin" gives me some problems

procedure DeclarePlayers;
begin
HowManyPlayers:= 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer:= 0;

Players[0].Name := 'nickname'; //UserName
Players[0].Pass := 'passwoordt'; //Password
Players[0].Nick := '3-letters); //Nickname
Players[0].Active := True; //Active
Players[0].Booleans[1]:= false; // Sleep = true , Not sleep = false
Players[0].integers[0]:= 5; // Rounds to do
Players[0].integers[1]:= 2; // Minutes to sleep
Players[0].Strings[0]:= 'strength' // attack,defence,strength,all

Cleardebug;
Writeln('You are using '+IntToStr(HowManyPlayers)+' Players');
end;

Gu3st...

2008-08-30 14:22:07

Try doing a Checkout. Tools –> Options –> SRL Download –> Checkout