Results 1 to 4 of 4

Thread: Something with the players active states -1

  1. #1
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Something with the players active states -1

    I want in my mainloop:
    SCAR Code:
    {=========================]
             MainLoop
    [=========================}

    Begin
      SetUpSRL;
      SetupClient;
      SetupPlayer;
      Repeat
        Repeat

          Heal;
        Until (not loggedin)

        If Not LoggedIn Then Nextplayer(False);
     until (false)
    End.
    in the line before the end. i want something like if all players are false then break(until that is true)
    how do i do that i thought about something all player states - 1

    can you help me?

    Hermpie
    Thanks!
    ~Hermen

  2. #2
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    SCAR Code:
    Function AllFalse: Boolean;
    Var
      I: Integer;
    Begin
      Result := True;
      For I := 0 To High(Players) Do
        If Players[CurrentPlayer].Active Then
          Result := False;
    End;

  3. #3
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks!

    Edit:
    Sorry N3ss3s
    ~Hermen

  4. #4
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Function AllPlayersInactive : Boolean;
    Var
      I : Integer;
    Begin
      For I := 0 To HowManyPlayers - 1 To
        If Players[I].Active Then
          Exit;
      Result := True;
    End;

    Faster.
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Going to be not as active...
    By Kyle Undefined in forum News and General
    Replies: 16
    Last Post: 01-15-2009, 02:18 AM
  2. Number of Active Players
    By Zackattk1993 in forum OSR Help
    Replies: 2
    Last Post: 11-11-2008, 10:30 PM
  3. Detecting if all players are not active
    By cathering_ in forum OSR Help
    Replies: 8
    Last Post: 10-11-2007, 11:49 PM
  4. active players? multiple logins?
    By Martingon in forum OSR Help
    Replies: 5
    Last Post: 05-08-2007, 04:43 AM
  5. Me At 100% Active!!!
    By Rune Hacker in forum SRL Site Discussion
    Replies: 21
    Last Post: 05-06-2007, 01:11 AM

Posting Permissions

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