Results 1 to 9 of 9

Thread: script fails when an old man comes!

  1. #1
    Join Date
    Mar 2007
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default script fails when an old man comes!

    Ok, so here's my little random finder procedure (leeched from someone else I might add lol..)
    SCAR Code:
    procedure chekrandums;
    begin
    findtalk;
    findnormalrandoms;
    if (findfight=true) then
    begin
    runawaydirection('E');
    wait(10000+random(2000));
    runback;
    end;
    end;
    Anyways, my script will do what it's supposed to until it finds a random event. It gets a "[Runtime Error] : Out Of Range" when it gets a random event, and I have no clue why.

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

    Default

    do you have nick? plus nicknameBPM from mask...etc. you need that stuff in there for talking randoms.

  3. #3
    Join Date
    Mar 2007
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    no I dont can't believe I didn't think of that. Time to go read more tuts!

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

    Default

    Don't smack your head over it, your still learning

  5. #5
    Join Date
    Mar 2007
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Do I have to put player[0].name in a declareplayers procedure? I saw 2 scripts that used declareplayers to setup the stuff, so I'm unsure, I got errors when NOT putting it in its own procedure.. What i've done so far
    SCAR Code:
    players[0].name :='spamaz0rz';
    players[0].pass :='fakepwpl0x';
    players[0].nick :='pamaz';
    players[0].loc :='mine'; // dont change ;)
    players[0].active:=true;
    It gets runtime error: out of range on players[0].name.. :/

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

    Default

    Get my power miner and look at my declare players procedure its a seperate procedure yes. and you need number of users, how many players...etc. just look at my power miner and you should see how it works

  7. #7
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by asdfasdfasdf View Post
    It gets runtime error: out of range on players[0].name.. :/
    put in your DeclarePlayers procedure
    SCAR Code:
    SetArrayLength(Players,1)
    And did you remember to call procedure "DeclarePlayers;" in mainloop?

  8. #8
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I got the same problem when i was running SCAR from a cd that I had copied from another computer so I wouldn't have to dl it again. If you are doing that then that's the problem, randoms don't work for some reason.

  9. #9
    Join Date
    Jun 2006
    Posts
    250
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You just need to script it right and have the GetNicknameMaskFromBmp or whatever.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. my script fails...but i tried
    By blink in forum First Scripts
    Replies: 6
    Last Post: 01-23-2009, 09:39 PM
  2. snake fails
    By Shuttleu in forum Semi Stupid Pictures
    Replies: 5
    Last Post: 10-08-2008, 11:45 PM
  3. Who fails more?
    By JuKKa in forum The Bashing Club / BBQ Pit
    Replies: 18
    Last Post: 08-31-2008, 04:56 AM
  4. Dynamic script stats image fails:s
    By PvH in forum Web Development
    Replies: 5
    Last Post: 07-12-2008, 04:17 PM
  5. RS fails again..
    By uncfan1119 in forum RuneScape News and General
    Replies: 8
    Last Post: 11-19-2007, 03:21 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
  •