Results 1 to 6 of 6

Thread: out of range in findtalk;

  1. #1
    Join Date
    Oct 2007
    Location
    medway.england
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    out of range in findtalk;

    [Runtime Error] : Out Of Range in line 1211 in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Core/AntiRandoms/AntiRandoms.scar

    function is: findtalk;

    line 1211 is: if FindTPAinTPA(Players[CurrentPlayer].NickTPA,TPA,Matches) then

    function called is script: FindNormalRandoms;

    the script:

    Code:
    program New;
    {.include SRL/SRL.scar}
    procedure AntiRandoms;
    begin
    
    LampSkill := 'defence';
    FindInventoryRandoms;
    FindNonInventoryRandoms;
    FindNormalRandoms;
    gametab(2);
    
    if(GetSkillInfo('Hitpoints',True))<(19)then
    begin
    RunAway('s',false,2,15000)
    logout;
    end;
    
    gametab(4);
    end;
      
      
    begin
    setupSRL;
    ActivateClient;
    wait(2000);
    SetFightMode(4);
    wait(1000);
    makecompass('n');
    repeat
    antirandoms;
    until(false);
    end.
    i feel like such an idiot/leecher/n00b asking for help with something this simple but i realy have no idea whats wrong as far as i can see it has to be me thats done something wrong because other scripts using findnormalrandoms; are working fine for me...

  2. #2
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Do you have SCAR 3.15 and SRL rev#15?


  3. #3
    Join Date
    Oct 2007
    Location
    medway.england
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Cazax View Post
    Do you have SCAR 3.15 and SRL rev#15?
    yes, i have also tryed deleting srl and re downloading

  4. #4
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Maybe because you haven't logged in with your script? Other than that, I don't see an error.

    And doesn't FindNormalRandoms find all randoms?

    Nava2
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  5. #5
    Join Date
    Oct 2007
    Location
    medway.england
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    sorry, i didn't exsplane this fully enough, the out of range error dosn't happen until the script runs the findNormalRandoms; function. im assuming all you did was compiled it?

  6. #6
    Join Date
    Oct 2006
    Location
    I'm also from Michigan!
    Posts
    563
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    its because you havent called NumberOfPlayers and setup the player array, so findTalk is searching for a nick that doesnt exist

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
  •