SRL Archive - Help

loginplayer give out of range error.


tom99

2012-01-06 07:37:08

when running loginplayer i get this error.

Error: Out Of Range at line 393 in login.scar
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap]

Harry

2012-01-06 07:46:52

Is your howmanyplayers proper?

tom99

2012-01-06 07:53:01

yes here is my declareplayer thing.

Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name := ';
Pass := '';
Pin := '';
BoxRewards := ['XP','xp','lamp'];
LampSkill := 'Strength';
Active := True;
end;
end;

NCDS

2012-01-06 07:55:36

Are you sure you call DeclarePlayers in the main loop?

tom99

2012-01-06 09:49:52

/facepalm nope no wonder it didn't work does now tough.

Narcle

2012-01-06 10:21:07

Has happened to me so many times… I recall the solution fairly fast lol