Jump to content
WittyUsername

"Subscript used on non-accessible variable."

Recommended Posts

WittyUsername

Hello, I am currently working on a bot for Runescape. It's not completed yet, however I'm confused as to why it always errors on this line. When I first put the line in and ran the script it ran fine for about 20 minutes, then after a restart of my computer, the script always errors on this line.

Here's the error it gives me.

<snip>

 

 

 

 

 

Thanks in advance for your help :)

Edited by Melba23
Code removed

Share this post


Link to post
Share on other sites
Relive

Welcome to the forums! I've noticed you misused PixelSearch()'s return value which is an array, so you need to access the array properly. Your error is related to array problems.

Share this post


Link to post
Share on other sites
water

Welcome to AutoIt and the forum!

Seems you missed to read the forum rules on your way in. Especially the section about game automation.
That's why you won't get any help on this subject.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×