Results 1 to 6 of 6

Thread: changing probs

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

    changing probs

    when the guy is lost and logs out to change player it logs out again on the next player..

    example:

    player1 = lost

    then player 1 logs out.

    the player 2 = next player

    then player2 logs in.

    then player 2 logs out and doesnt do the task.

    the player 3 = 3rd player

    then player 3 logs in.

    then he do the task but player2 has never done his loop..

    grrr im getting this problem i tryed with


    if(time)then
    nextplayer(false);
    exit;

    and with

    if(time)then
    nextplayer(false);


    time is the masktime integer i was using.... but it works great for the time but when it changes to next player it logs out! grrrrr i need help

  2. #2
    Join Date
    Dec 2006
    Location
    Ky
    Posts
    390
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm I think the problem may be that you have a constant set so that the script runs till the constant equals something then nextplayer true. Well if you have that then the constant is still what it was before so it thinks that it needs to go to the next player... What you need to do is reset the constant back to zero..
    This is a rough example but hope you get the gist..

    SCAR Code:
    Procedure Action;
    Begin

     ChopLogs;
     L := L+1;
    end;

    Procedure Doit;
    begin
     Repeat
     Action;
     Until (l=4)
    Nextplayer (true); // Logs the next player but doesnt change the const value
    //Here you could put l :=0;
    end;


    begin
    repeat
    Doit;
    until (false);
    SUMMER BREAK be back when I want to

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

    Default

    ok but wait a min...

    what nextplayer ( ''true'' )
    or nextplayer (''false'') means?

    true means that the current player will be active, and false he will be not active?

    or it means the next player will not be active???????????????

  4. #4
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    NextPlayer(True) = Next player can still be used.

    NextPlayer(False) = Next player can't be used.

  5. #5
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok lets say the current player is the player is that logged in. When you call Nextplayer(true);, that means that the current player can still be used, but will log out and switch to the next. Now if you put NextPlayer(false);, then that current player will NOT be active anymore for the whole script.

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

    Default

    ok thats what i tough but i put nextplayer(false); then it change players and then it logs out and change again...??wtf the current player which i want to be not active the whole script logs out then the next player logs out too..

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. got 2 probs
    By ShowerThoughts in forum OSR Help
    Replies: 3
    Last Post: 09-03-2007, 09:27 PM
  2. banning probs
    By macromacro123 in forum OSR Help
    Replies: 16
    Last Post: 03-04-2007, 08:20 PM
  3. bitmap probs
    By macromacro123 in forum OSR Help
    Replies: 6
    Last Post: 03-03-2007, 10:16 PM
  4. probs with banks
    By macromacro123 in forum OSR Help
    Replies: 2
    Last Post: 03-03-2007, 07: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
  •