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

[JASS] Init of Arrays

Status
Not open for further replies.
Level 5
Joined
Jul 2, 2005
Messages
60
Hello folks,

i need to get the damage per level and so on into an array ...

globals

private TC array users
private integer total = 0
private timer t = CreateTimer()

private real array damage
private real array range
private real array time
private constant integer id = 'AHbn'
private constant string di = "SPLK"

endglobals

now i know in java you can do it like that : int[] i = {3,3,3,3,3,3}

how to do that in vJass....
I tried it like shown as an example

private real array damage = {3,3,3,3}

but that doesnt work!

So my question is how initialisize that array or is it even possible ? ;(

thank you
 
Status
Not open for further replies.
Top