Well first you should have this at the beginning of every procedure you use:
SCAR Code:
if(not(LoggedIn))then
Exit;
At the beginning of your main loop i would put in:
SCAR Code:
if(not(LoggedIn))then
LoginPlayer;
You want to do this whenever your script may mess up ex: (getting lost, didnt find color ect..) so like:
SCAR Code:
if(not(FindColor(x,y,Color,MSX1,MSY1,MSX2,MSY2))then
begin
Writeln('could not find color');
NextPlayer(False); // The False means that the player is turned inactive
end;
When you have finished like X amount of loads or X amount of time for a player then you can use :
SCAR Code:
if(loads = loads1)then
begin
NextPlayer(True); // Player remains active after the switch
end;
for your actual declare players thing...
there are a bunch of things you can use like:
SCAR Code:
Players[0].Integers[0] := ;
Players[0].Booleans[0] := ;
Players[0].Loc := ;
Players[0].strings[0] := ;
i know im forgetting some, but if you look in your SRL folder they are listed somewhere maybe in the globlals...
anyways i hope this helps ya