A local array sized by parameter; is this possible?

Status
Not open for further replies.
JASS:
int gf_SelectVote (int lp_optionsCount) {
    int[lp_optionsCount]   lv_picked; // is this possible?
    // blah blah not relevant to what I'm asking code all removed
}

Can I have that integer array lv_picked sized by the int local parameter lp_optionsCount?

I have managed to size arrays before with const int globals but I'm not sure if this would work.
 
Status
Not open for further replies.
Back
Top