• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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.
Top