• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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