Jump to content

Dim, cant understand


Recommended Posts

Why is there comes a error everytime i run this i cant see any errors

Dim $passwords[10]
$passwordss="assassinownsall"
for $1=0 to 10
Global $passwords[$1]=$passwordss&$1
Next
My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!
Link to comment
Share on other sites

  • Moderators

Dim $passwords = [10]

The [10] are elements in the array, but you have to define them first.
Dim $passwords[11]
$passwordss = "assassinownsall"
For $1 = 0 to 10
 $passwords[$1] = $passwordss & $1
Next
If you are going to use 10 elements, you need to define it by adding one more, note [11] instead of [10].

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...