Results 1 to 8 of 8

Thread: Odd out of range error..

  1. #1
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Odd out of range error..

    Well, heres my error I'm having in Login.scar. When I run it on SCAR 2.03 it just says out of range error, and then of course, in SCAR Divi it opens up the Login.scar in a new tab (not sure if everybody knew of that feature, but thats what it does when a error occurs in the includes).

    [Runtime Error] : Out Of Range in line 391 in script C:\Program Files\SCAR 2.03\includes\srl\srl\core\Login.scar

    Odd huh? It happens when I use this procedure I made:

    SCAR Code:
    procedure JADPlayer(TF: Boolean);
    begin
      NextPlayer(TF);
      JADCompass;
      GameTab(4);
      HighestAngle;
      LoadsNumB := 0;
    end;

    I tried making it function JADPlayer too, but that didn't make a difference. This wouldn't compile for you because JADCompass and LoadsNumB are functions and variables in my script

    If anybody can help me out that'd be GREAT!

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Maybey this?

    SCAR Code:
    procedure JADPlayer(TF: Strig);
    begin
      Case TF Of
        't': NextPlayer(True);
        'f':NextPlayer(False);
      End;
      JADCompass;
      GameTab(4);
      HighestAngle;
      LoadsNumB := 0;
    end;

  3. #3
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Did you make sure to declare the value of TF as either true or false at some point?

  4. #4
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm not even using that.. I'd use it like JADPlayer(False) Or JADPlayer(True). Not like I put T or F in there. I put the whole thing, so it should work..

  5. #5
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Alright, just making sure.

    This is what I show in line 391

    SCAR Code:
    Players[CurrentPlayer].Active := False;

    The only thing I can think of is that it can't access Players[currentplayer] because your player array is messed up some how.

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

    Default

    Only thing I allready figured out is that there are some bugs in SRL 3.7 ..
    Srl simply rocks.

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

    Default

    Did you declare your Players?........
    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
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by WT-Fakawi View Post
    Did you declare your Players?........
    Whoah shit....ocki mushrooms! I didn't do that Wow I'm a noob thanks fakawi! Me = loser

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Out of Range Error
    By Torrent of Flame in forum OSR Help
    Replies: 7
    Last Post: 12-20-2008, 09:24 PM
  2. Out of range error still...=(
    By oakley123 in forum OSR Help
    Replies: 2
    Last Post: 10-22-2008, 05:48 AM
  3. Out Of Range Error
    By decide in forum OSR Help
    Replies: 8
    Last Post: 08-02-2008, 10:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •