
Originally Posted by
Boreas
ScarScript:
By Drunkenoldma procedure MainLoop; begin repeat ChopTree; until(InvFull) DropTheLogs; Loads := Loads+1; if(LoggedIn) and (Loads > Load)then begin NextPlayer(True); end;
ScarScript:
By Drunkenoldma begin DeclarePlayers; Setup; repeat MainLoop; until isfkeydown(12); WriteLn('Script ended at: '+TheTime); end.
try that
Tried that and it didn't work, thanks anyway. I am getting lots of Access violation errors so I am gonna try and reinstall SRL and see what happens.
The problem is definetly with that.. when id do something simple like this:
SCAR Code:
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
CurrentPlayer:= 0;
NumberOfPlayers(HowManyPlayers);
Players[0].Name := ' ';
Players[0].Pass := ' ';
Players[0].Nick := ' ';
Players[0].Active := True;
end;
begin
SetupSRL;
DeclarePlayers;
LoginPlayer;
end.
I get the same error every time:
Code:
Successfully compiled
[Runtime Error] : Exception: Access violation at address 0064FEA2 in module 'scar.exe'. Read of address 00000000 in line 353 in script C:\Program Files\SCAR 2.03\includes\srl\srl\core\Text.scar