Results 1 to 5 of 5

Thread: Small problem with multiplayer.

  1. #1
    Join Date
    Jun 2007
    Location
    England
    Posts
    262
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Small problem with multiplayer.

    Ok, I just implemented multiplayer into my script. Logs in the players fine and solves randoms easily. However I am using:

    SCAR Code:
    Players[0].Integer1 := 1;

    To define the loads set for each player.. but it wont switch after the specified load amount.

    At the bottom of my script I have:

    SCAR Code:
    if (Loads = LoadsToDo) and LoggedIn then NextPlayer(True)
          if not LoggedIn then NextPlayer(False)

    And:
    SCAR Code:
    Loads := Loads + 1

    In the part of the script where I want it to swap players.. any ideas guys?

    Thanks in advance,
    Passiondrive

  2. #2
    Join Date
    Feb 2007
    Location
    SparklesProd.com
    Posts
    2,406
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Did you assign integer1 to loadstodo ?

    ie

    Code:
    Players[CurrentPlayer].Integer1 := LoadsToDo;
    Sorry if i'm patronising you

    If not post the script and I'll sort it for you.

  3. #3
    Join Date
    Jun 2007
    Location
    England
    Posts
    262
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Omg... haha i'll give it a test now. I'm mad at myself

  4. #4
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    if (Loads >= Players[CurrentPlayer].Integer1) and LoggedIn then
    begin
      Loads:=0;
      NextPlayer(True)
    end;
    if not LoggedIn then NextPlayer(False)
    Also, you need to zero the variable so it will work after it changes player.
    If you want to use something in progress report like "Loads done", then make another variable for that and no need to zero it.

  5. #5
    Join Date
    Jun 2007
    Location
    England
    Posts
    262
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks still testing..

    Edit: Works good thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Small Problem
    By lilpaintballer in forum OSR Help
    Replies: 9
    Last Post: 09-27-2008, 10:04 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
  •