Results 1 to 2 of 2

Thread: NextPlayerWait(Active: Boolean);

  1. #1
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default NextPlayerWait(Active: Boolean);

    PHP Code:
    {*******************************************************************************
    procedure NextPlayerWait(ActiveBoolean);
    ByDankness with a simple little addition by Hey321
    Description
    Logs in the next player after x amount of wait.
    BooleanTrue Current player is okFalse Current player is false.
    *******************************************************************************}

    procedure NextPlayerWait(ActiveBoolean);
    begin
      
    if RandomPlayer then
        RandomNextPlayer
    (Active)
      else
      
    begin
        WriteLn
    ('NextPlayer');
        if 
    not Active then
          Players
    [CurrentPlayer].Active := False;
        
    Logout;
        
    PlayerCurTime := (GetSystemTime div 1000);
        
    Players[CurrentPlayer].Worked := Players[CurrentPlayer].Worked +
          ((
    PlayerCurTime PlayerStartTime) / 60);
        
    CurrentPlayer := CurrentPlayer 1;
        if 
    CurrentPlayer HowManyPlayers 1 then
          CurrentPlayer 
    := 0;
        while 
    Players[CurrentPlayer].Active False do
        
    begin
          CurrentPlayer 
    := CurrentPlayer 1;
          if 
    CurrentPlayer HowManyPlayers 1 then
          begin
            CurrentPlayer 
    := 0;
            
    Wait(10000); // Everybody False. Endless Loop.
          
    end;
        
    end;
        if 
    Players[CurrentPlayer].Active True then
        begin
          Logs 
    := Logs 1;
        
    end;
        
    Wait(1800000);
        
    LoginPlayer;
      
    end;
    end

    I made this as i wanted to be able to have a wait in there to. It gives me some errors but other than that it seems fine.

  2. #2
    Join Date
    Sep 2006
    Posts
    154
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm under the impression that it actually did wait in between log ins.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Procedure SetUserNicks(Active: Boolean);
    By Macrosoft in forum Research & Development Lounge
    Replies: 13
    Last Post: 11-16-2007, 08:34 PM

Posting Permissions

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