I have a function...
Okay, so technically it's two functions and a global, but that's beside the point.
My problem is I'm using this in a system I'm making, but I can't have it so I need to declare the array each time.
This function (myFunct) is part of the core of the system. It's part of how it works (it's a secret project, so don't ask what it is please).
What I need is a way to set the array number (I think it's called an array index) from the function calling it.
Is it possible? If so, how would I do it?
(I have several global arrays which "myFunct" sets values to.)
JASS:
Okay, so technically it's two functions and a global, but that's beside the point.
My problem is I'm using this in a system I'm making, but I can't have it so I need to declare the array each time.
This function (myFunct) is part of the core of the system. It's part of how it works (it's a secret project, so don't ask what it is please).
What I need is a way to set the array number (I think it's called an array index) from the function calling it.
Is it possible? If so, how would I do it?
(I have several global arrays which "myFunct" sets values to.)