Results 1 to 5 of 5

Thread: Errors

  1. #1
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Errors

    I use the SVN, I have SRL 10...

    I keep getting an error in Login.scar near the
    SCAR Code:
    if Players[CurrentPlayer].Active = false then
    place...And, no script will work! It basically says [Runtime Error] Out of Range In Line 90 of : ///Login.scar

  2. #2
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Moved to FAQ.

    I think you didn't setup your players correctly.
    Hup Holland Hup!

  3. #3
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Successfully compiled
    SRL Compiled in 250 msec
    [Runtime Error] : Out Of Range in line 78 in script C:\Documents and Settings\DOWNLOADS\[SRL4] QuickPowerMiner1.7.scar

    procedure SetupScript;
    begin
    if (Players[CurrentPlayer].Booleans[1])then
    begin

    That's the line...


    Here's my login setup:
    SCAR Code:
    Procedure DeclarePlayers;
    Begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 1;

      Players[0].Name :='***_*****';
      Players[0].Pass :='************';
      Players[0].Nick :=****'; //3-4 letters from name
      Players[0].Active:= True;
      Players[0].Booleans[1]:= False; // True if new rocks. False if old.
      Players[0].Booleans[2]:= True; // Pick equipped?
      Players[0].Strings[1]:= '
    Copper'; // type of ore
      Players[0].Integers[1]:= 5; // # of loads
    End;

  4. #4
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    CurrentPlayer := 1;

    change that to:

    SCAR Code:
    CurrentPlayer := 0;


  5. #5
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok, lol...That's the ONE thing I forgot to change...I even thought about it when I deleted teh other player setups...Thanks guys

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Errors.....
    By MrDeeds in forum OSR Help
    Replies: 3
    Last Post: 06-04-2007, 07:44 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
  •