SRL Archive - OSR Help

Player declared integers?


Troll

2010-11-27 12:52:36

Ok so i want to use some thing like

If GetLevel >= Players[i].Integers[1] Then

So i want would i put in this bit?


Procedure DeclarePlayers;
Begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

With Players[0] Do
Begin
Name := '';
Pass := '';
Nick := '';
Active := True;
Pin := '';
Integer :=
End;
End;

Thanks for all your help

Method

2010-11-27 12:56:00

Integers is an array in the TPlayer type, so you'll need to treat it as such. You'll want something like:

Procedure DeclarePlayers;
Begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

With Players[0] Do
Begin
Name := '';
Pass := '';
Nick := '';
Active := True;
Pin := '';
Integers[1] := level;
End;
End;