| 02-19-2004, 11:03 PM | #1 |
So I looked at the jass and saw this: Code:
unit array udg__units So I did this: Code:
Custom script: local unit array udg__units And it tells me that it's expecting a name on that line. -- so what's the proper syntax for defining a local array? |
| 02-20-2004, 12:12 AM | #2 |
Hmm, that's a correct deffinition. Nothing wrong with it, So the only thing i can think of is this bug allowing us to fool the GUI with local variables.... is not working for arrays :/, Althought that's not logical, as how it works. So o_O, i just can't be sure. Did you initiate the array elements? (that would not cause a compile error though :/ ) And is it possible that you have another custom-script line above or below that line which may be causing the problem (as the compiler sometimes points at wrong line. Cubasis |
| 02-20-2004, 12:17 AM | #3 |
I just did a test real quick local unit array udg_units -- worked local unit array udg__units -- didn't work my global variable is the second one "_units" in the GUI, "udg__units" in JASS |
