SRL Archive - OSR Help

Weird Runtime Error


Footy

2012-11-09 12:20:42

When running this code:

program new;
{$i srl/srl.simba}

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

Players[0].Name := 'Footy00@binkmail.com'; //Username Here!
Players[0].Pass := 'ilikepie2'; //Password Here!
Players[0].Pin := ''; //Pin here!
Players[0].Active := True;

End;

begin
SetupSRL
DeclarePlayers;
Loginplayer;
end.

I recieve this runtime error right after the script presses login.

Exception: Range check error at line 576

I only found one post on these forums about this error, and it didn't really specify what to fix. Am I doing something wrong? :redface:

Thanks guys,
Footy

The Killer

2012-11-09 12:51:34

I hope that account is fake!

Ashaman88

2012-11-09 13:08:08

hmm what file opens up? are you trying to run it on EOC?

Footy

2012-11-09 13:10:15

Whoops, sorry, forgot that. It opens Globals.simba. I'm running on normal servers min settings fixed safe mode all that stuff. :/

Le Jingle

2012-11-09 13:40:46

Might want to slip a semi-colon after setupSRL;

Works fine in Simba 1+, no out of range errors.
(Though it does take absurdly longer than usual to compile ;) )