PDA

View Full Version : I need help making a fail safe for this



Googlez
03-21-2015, 08:44 AM
I need help making a fail safe for this.

25374

cosmasjdz
03-21-2015, 09:13 AM
I need help making a fail safe for this.

25374


If the action is in a loop then:


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