I was making my agility course runner (all others suck, sorry) and made some functions.
I think that AddPlayer() would be a good addition to SRL.
Here is source (I whipped it up in ~10 seconds, so it is crummy):
SCAR Code:
procedure DeclarePlayer(username, password, nick: string; active: boolean);
begin
HowManyPlayers := GetArrayLength(Players) + 1;
NumberOfPlayers(HowManyPlayers);
Players[GetArrayLength(Players) + 1].Name := username;
Players[GetArrayLength(Players) + 1].Pass := password;
Players[GetArrayLength(Players) + 1].Nick := nick;
Players[GetArrayLength(Players) + 1].Active := active;
WriteLn('Added player number ' + IntToStr(GetArrayLength(Players) + 1) + ', ' + username + '.');
end;
Would this make a useful addition?
Or are people used to doing this manually...
Thanks!