Sign in to follow this  
Followers 0
LiLShinta

error Line:-1 subscript used w/ non array var

4 posts in this topic

as the topic said how can i fix this kind of error...

Share this post


Link to post
Share on other sites



Somewhere in the script there is an error... you can't fix it through the compiled exe. What happens when you run the non compiled script?


While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

as the topic said how can i fix this kind of error...

Post your code and specify the line where the error is occurring.

As mentioned above, the error won't specify a line if you are using a compiled .exe. If you run from the .au3 file, it will. Run from the .au3 file and post the line that is having the issue.

Edited by Ealric

My Projects: [topic="89413"]GoogleHack Search[/topic], [topic="67095"]Swiss File Knife GUI[/topic], [topic="69072"]Mouse Location Pointer[/topic], [topic="86040"]Standard Deviation Calculator[/topic]

Share this post


Link to post
Share on other sites

when i've seen this error, it typically means one of two things: either the part of your script throwing this error is trying to write to an array out of bounds OR exactly what it says: you're trying to write something to a VARIABLE instead of an ARRAY. Now most often when I see the second scenario, the array is not declared, not declared with proper bounds, etc. HTH


My Additions:- RunAs AdminDeviant Fun:- Variable Sound Volume

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0