Results 1 to 3 of 3

Thread: Player array help?

  1. #1
    Join Date
    Sep 2008
    Posts
    155
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Player array help?

    I'm getting this error: [Runtime Error] : Out Of Range in line 225 in script C:\Pro[...]RTV5.scar, when I try to run my script. It says that there's an error here, (on the "if" line):

    SCAR Code:
    procedure LoadDTMs;
    begin
    if (Players[currentplayer].Strings[1] = 'mithril') then
    begin
      MithrilOreDTM := DTMFromString('78DA6394626060906040017EFEC50C3C409A1' +
          '188FF030123279021CE8006189148202D06243809A8510012DC04' +
          'D4A8030901026A948184141176C913502344580D00094106B0');
       
      MithrilBarDTM := DTMFromString('78DA6394606060106540018E8EF10C3C409A1' +
          '188FF0301238823C18006189148200D32839F801A5922D4280109' +
          '21026A5488700FC82E7922DCAC845F0D00D9240685');
    end;
    end;

    Any suggestions?
    Current Project - Superheater :: Mithril Bars - Should be ready for Members application soon

  2. #2
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    have you declared players before using this function, if not your gunna get an error on player[currentplayer].Strings[1]
    “Ignorance, the root and the stem of every evil.”

  3. #3
    Join Date
    Sep 2008
    Posts
    155
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh whoops, i called that function later on, thanks.
    Current Project - Superheater :: Mithril Bars - Should be ready for Members application soon

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Player not found in player array?quikchat?
    By jerrysyron in forum OSR Help
    Replies: 2
    Last Post: 08-01-2008, 12:44 AM
  2. the new srl 4 player array
    By RudeBoiAlex in forum OSR Help
    Replies: 10
    Last Post: 08-23-2007, 09:53 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
  •