Results 1 to 2 of 2

Thread: Player declared integers?

  1. #1
    Join Date
    Oct 2010
    Location
    Under a bridge
    Posts
    648
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Player declared integers?

    Ok so i want to use some thing like
    Simba Code:
    If GetLevel >= Players[i].Integers[1] Then

    So i want would i put in this bit?

    Simba Code:
    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

  2. #2
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

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

    Simba Code:
    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;
    :-)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •