GooS
Azrael
- Reaction score
- 154
Hiya guyses,
So, here's the problem, I've made a function that returns an array, first I didn't even know if it was possible but it went through the compiler so I thought it was fine.
The bad part came now when I attempted to use it, at first I tried to create a local array of the same type and then set that array to the returned one, that gave me the error of not giving an index to the array I'm trying to set to.
But I don't want that do I? since I want it become the complete returned array.
So I tried using the function directly in hope that it would work:
Did't work either so, is there a way?
//==GooS
So, here's the problem, I've made a function that returns an array, first I didn't even know if it was possible but it went through the compiler so I thought it was fine.
The bad part came now when I attempted to use it, at first I tried to create a local array of the same type and then set that array to the returned one, that gave me the error of not giving an index to the array I'm trying to set to.
But I don't want that do I? since I want it become the complete returned array.
So I tried using the function directly in hope that it would work:
JASS:
call FunctionHere(arg)[index]
Did't work either so, is there a way?
//==GooS