Results 1 to 2 of 2

Thread: I need help making a fail safe for this

  1. #1
    Join Date
    Mar 2015
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default I need help making a fail safe for this

    I need help making a fail safe for this.

    W7TU1Ry.jpg

  2. #2
    Join Date
    Jun 2014
    Location
    Lithuania
    Posts
    475
    Mentioned
    27 Post(s)
    Quoted
    200 Post(s)

    Default

    Quote Originally Posted by Googlez View Post
    I need help making a fail safe for this.

    W7TU1Ry.jpg

    If the action is in a loop then:

    Simba Code:
    for i:=15 to 28 do // your loop, as i quess from index i you use in tpa
    begin
       if length(atpa)<(i-1) then exit;//failsafe if your tpa doesnt exist doesnt try to acces it
       mouse(middletpa)
    end;

    Your script crashes because atpa[i] does not exist at some point of your script and cant access it

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
  •