J J
2012-09-30 07:13:07
Hello,
I'm looking to compile a list of accounts by reading a text file. I've managed to get this working but now that I'm trying to make it work with SMART it doesn't work.
The top
Mainloop
DeclarePlayers
I guess SetupSRL doesn't get called before the account is logged in or something? With SMART:
Total accs: 0
Error: Out Of Range at line 64
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, SRL - NavBar Bitmap]
Commenting DEFINE SMART out
Total accs: 19
Successfully executed.
Any idea how I can fix this? I guess it's something simple but yeah.
Thanks in advance.
I'm looking to compile a list of accounts by reading a text file. I've managed to get this working but now that I'm trying to make it work with SMART it doesn't work.
The top
program Rotate;
{$DEFINE SMART}
{$i SRL/srl.simba}
Mainloop
begin
SetupSRL;
AccountDetails := GetAccounts('C:/Simba/accounts.txt');
DeclarePlayers;
LoginPlayerToLob;
OpenWorldScreen;
SelectWorld(53);
LoginPlayer;
Wait(3000 + Random(3000));
MarkTime(Timer); DeclarePlayers
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := AccountDetails[n][0];
Players[0].Pass := AccountDetails[n][1];
Players[0].Active := True;
Players[0].Pin := '';
Players[0].Member := true;
end;I guess SetupSRL doesn't get called before the account is logged in or something? With SMART:
Total accs: 0
Error: Out Of Range at line 64
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, SRL - NavBar Bitmap]
Commenting DEFINE SMART out
Total accs: 19
Successfully executed.
Any idea how I can fix this? I guess it's something simple but yeah.
Thanks in advance.