Results 1 to 8 of 8

Thread: Help With Multi Players

  1. #1
    Join Date
    Jun 2006
    Posts
    366
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help With Multi Players

    I am having trouble with my power wood cutter. The problem is that it only detects player one. For example i tell it to switch from player 1 to player 2 it wont do it..
    Here is the basics of what my player switching is using.. This script is supposed to log in with one player than switch etc... BUt all it does is logs in with first player and for second player it just stays there on the login screen ..

    Plz help me out.. I am like soooooooo madddddddd Can't get it to work........

    SCAR Code:
    program New;
    {.include SRL/srl.scar}
    Procedure DeclarePlayers;
    begin
      NumberOfPlayers(4);

         Players[0].Name :='---------';
         Players[0].Pass :='----------';
         Players[0].Nick :='---';
         Players[0].Active:=True;

         Players[1].Name :='';
         Players[1].Pass :='----';
         Players[1].Nick :='---';
         Players[1].Active:=True;

         Players[2].Name :='------------';
         Players[2].Pass :='-------------';
         Players[2].Nick :='---';
         Players[2].Active:=True;

         Players[3].Name := '------';
         Players[3].Pass := '-------------';
         Players[3].Nick := '---';
         Players[3].Active := True;
    end;
    begin
    setupsrl;
    declareplayers;
    loginplayer;
    wait(100);
    nextplayer(false);
    repeat;
    wait(100);
    NextPlayer(false);
    until(false);
    end.
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig (I did, so should u )

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

    Default

    PHP Code:
    Procedure DeclarePlayers;
    begin
      NumberOfPlayers
    (4);
      
    NumberOfPlayers(HowManyPlayers); 
      
    CurrentPlayer:= 0

  3. #3
    Join Date
    Jun 2006
    Posts
    366
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I don't understand how that is different than my procedure... some words would help ..
    thx
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig (I did, so should u )

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

    Default

    You put

    PHP Code:
    Procedure DeclarePlayers;
    begin
      NumberOfPlayers
    (4); 
    You need to set the array length and which player to start using.

  5. #5
    Join Date
    Nov 2006
    Posts
    235
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    So the new code starts on player 0, which should stop you from starting on player 1. Get it?
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig
    http://www.stats.srl-forums.com/sigs/5612.png
    http://www.wizards.com/magic/images/...or_iswhite.jpg

  6. #6
    Join Date
    Aug 2006
    Location
    London
    Posts
    2,021
    Mentioned
    2 Post(s)
    Quoted
    0 Post(s)

    Default

    he did set the array length, its set in NumberOfPlayers

    the script looks fine to me, i dont know whats causing it, the only thing i can think of is to add this
    SCAR Code:
    const
     startplayer = 0;

    procedure declareplayers;
    begin
    currentplayer:= startplayer;
    Join the Official SRL IRC channel. Learn how to Here.

  7. #7
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    Actually, it is an issue that has been bothering me for some time now. It wont swap due to the fact that the Global Variable HowManyPlayers isnt set. Now, this Global Var is in fact totally obsolete, but for some reason (my bad prolly ) its still there.

    So,

    set
    PHP Code:
    HowManyPlayers:=4
    thats all!
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  8. #8
    Join Date
    Jun 2006
    Posts
    366
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yeah it worked with the fakawi way.. Sorry for not replying guyz, but thx for all your comments
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig (I did, so should u )

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Multi-User, Multi-Log, Multi-Bow Pro Fletcher
    By Foss in forum First Scripts
    Replies: 13
    Last Post: 07-16-2008, 08:54 AM
  2. Multi players Ban?
    By paintplaye in forum OSR Help
    Replies: 2
    Last Post: 04-05-2007, 01:36 AM
  3. Multi players
    By rkroxpunk in forum OSR Help
    Replies: 8
    Last Post: 03-24-2007, 12:11 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
  •