Results 1 to 6 of 6

Thread: Why won't NextPlayer work?

  1. #1
    Join Date
    Jan 2007
    Location
    Kansas
    Posts
    3,760
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default Why won't NextPlayer work?

    I'm using NextPlayer in my script and it doesn't seem to work for some reason. I will do a trip of mining then get back to the mine and I have it set to go to the next player after 1 trip but for some reason it gets back to the mine and just sits there. I check the debug box and it says "Next Player" like it is going to do it but never does it. Here's what i have:
    SCAR Code:
    if (i=(Players[CurrentPlayer].Integer1)) then
      begin
        AllPlayersInactive;
        NextPlayer(True);
      end else
      AllPlayersInactive;
      NextPlayer(False);

    If someone could help me it would be very appreciated


  2. #2
    Join Date
    Jan 2007
    Posts
    268
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    y u do allplayers inactive?

    u got do
    =


    if (i=(Players[CurrentPlayer].Integer1)) then
    begin
    NextPlayer(True);
    end else
    NextPlayer(False);

  3. #3
    Join Date
    Nov 2006
    Location
    California, USA
    Posts
    336
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes he is right, my AllPlayersInactive only checks if all Players[i].Active = False and returns that. That is an incorrect usage of the function. You might be using the version that terminates the script but I have changed it so that it is just a boolean.

    SCAR Code:
    if (i=(Players[CurrentPlayer].Integer1)) then
      begin
        if(Players[CurrentPlayer].Loc = 'Lost') then
          NextPlayer(False);
        NextPlayer(True);
      end;

    Use that or something similar.

  4. #4
    Join Date
    Jan 2007
    Location
    Kansas
    Posts
    3,760
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Well I tried just taking out the AllPlayersInactive and it still doesnt work...any suggestions?


  5. #5
    Join Date
    Feb 2007
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You need to logout as well

  6. #6
    Join Date
    Jan 2007
    Posts
    268
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    omg what did i told u?
    why the heck are u doing the inactive thing??
    you have to do it like that :

    if (i=(Players[CurrentPlayer].Integer1)) then
    begin
    NextPlayer(True);
    end else
    NextPlayer(False);

    do it with nextplayer(false);
    or nextplayer(true);

    that function will logout ur player(current) and log in the next one.

    if u do nextplayer(false) it will log out and ur current player will be inactive for the whole script. and it will log in the next player.
    if u do nextplayer(true) it will log out and ur current player will still active.and it will log in the next player.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. NextPlayer
    By Viral in forum OSR Help
    Replies: 9
    Last Post: 11-12-2008, 07:47 AM
  2. NextPlayer help
    By king vash in forum OSR Help
    Replies: 4
    Last Post: 03-28-2007, 12:54 AM
  3. randoms and nextplayer
    By macromacro123 in forum OSR Help
    Replies: 1
    Last Post: 03-12-2007, 03:01 AM
  4. false and nextplayer
    By macromacro123 in forum OSR Help
    Replies: 1
    Last Post: 03-05-2007, 04:21 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
  •