| View previous topic :: View next topic |
| Author |
Message |
klass
Joined: 18 Apr 2008 Posts: 3
|
Posted: Fri Apr 18, 2008 2:46 pm Post subject: Array help |
|
|
Hi I have some problem with array and msgbox
| Code: |
Loop, 10
{
Inputbox, Arrayx%A_Index%,Arrayx%A_Index%,x koordinat from %A_Index%
Inputbox, Arrayy%A_Index%,Arrayy%A_Index%,y koordinat from %A_Index%
}
Msgbox, x %Arrayx_1% and y %Arrayy_1% |
The msgbox just says x and y . What should I change. Very easy thing but I am new. |
|
| Back to top |
|
 |
Guest
|
Posted: Fri Apr 18, 2008 2:54 pm Post subject: |
|
|
change the msgbox to
| Code: | | Msgbox, x %Arrayx1% and y %Arrayy1% |
there is no '_' |
|
| Back to top |
|
 |
klass
Joined: 18 Apr 2008 Posts: 3
|
Posted: Fri Apr 18, 2008 2:58 pm Post subject: |
|
|
| thanks very much for the fast reply |
|
| Back to top |
|
 |
klass
Joined: 18 Apr 2008 Posts: 3
|
Posted: Sat Apr 19, 2008 4:54 pm Post subject: |
|
|
New problem
Now I want it too change variable. But when I write:
%attacky%i%% I get error msg.
How should I get the variable
%attacky1%
%attacky2%
and so on |
|
| Back to top |
|
 |
Wdb
Joined: 27 Feb 2006 Posts: 15 Location: Italy
|
Posted: Sat Apr 19, 2008 5:54 pm Post subject: |
|
|
| klass wrote: | New problem
Now I want it too change variable. But when I write:
%attacky%i%% I get error msg.
How should I get the variable
%attacky1%
%attacky2%
and so on |
I think: |
|
| Back to top |
|
 |
|