WittyUsername

"Subscript used on non-accessible variable."

3 posts in this topic

#1 ·  Posted (edited)

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



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

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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - 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.