Log in

View Full Version : loginplayer give out of range error.



tom99
01-06-2012, 12:37 PM
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
01-06-2012, 12:46 PM
Is your howmanyplayers proper?

tom99
01-06-2012, 12:53 PM
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
01-06-2012, 12:55 PM
Are you sure you call DeclarePlayers in the main loop?

tom99
01-06-2012, 02:49 PM
/facepalm nope no wonder it didn't work does now tough.

Narcle
01-06-2012, 03:21 PM
Has happened to me so many times... I recall the solution fairly fast lol