Results 1 to 3 of 3

Thread: Out Of Range Error..

  1. #1
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default Out Of Range Error..

    OK, I keep getting the Out of Range error.
    My script worked perfectly before I tried adding EXP Gained but now after it drops the logs and tries to do proggy it stops.
    Error:
    Out Of Range in line 890 in script
    Line 890:
    tmp := Players[CurrentPlayer].Integers[0] * XpGain[g];

    I will attach the script, so it will help more.

    I really need this fixed

    Cheers
    T~M

  2. #2
    Join Date
    Sep 2007
    Location
    Pennsylvania
    Posts
    3,396
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You never called ExpGained which you have to set your Xpgain array's length and values

    EDIT: Method, ninja'ed
    Last edited by Runescapian321; 08-16-2009 at 10:39 PM.

  3. #3
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    You never call ExpGained, so the XpGain array is never initialized.

    boooooooooooooooooooooooooooo
    :-)

Thread Information

Users Browsing this Thread

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

Posting Permissions

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