- Joined
- Nov 4, 2015
- Messages
- 98
- Reaction score
- 177
- First Language
- German, English
- Primarily Uses
Hi There!
I just want to know if anyone (good scripter) can help me out.
I want to create a new array with all map info stored in ->
- var array = [];
- array[1] = Map001.json
something like this...
The thing is, in $datamap is always just the last map stored. And $dataMapInfos doesnt have all infos i need.
I need the "note" information of each map.
Basicly i just need a new array where all "Map00x.json" objects are stored in.
- DataManager._databaseFiles.push({name: "$datamap1", src: "Map001.json"});
<- This is not a solution because at that point the length of $dataMapInfos is not given,
so a "for loop" has to go up to 999 which will give the error "Map00X is not found"....
Help!
The final array should look like this:
$myarray[]
- 0: Map001
- data
- 1: Map002
- data
2: ....
I just want to know if anyone (good scripter) can help me out.
I want to create a new array with all map info stored in ->
- var array = [];
- array[1] = Map001.json
something like this...
The thing is, in $datamap is always just the last map stored. And $dataMapInfos doesnt have all infos i need.
I need the "note" information of each map.
Basicly i just need a new array where all "Map00x.json" objects are stored in.
- DataManager._databaseFiles.push({name: "$datamap1", src: "Map001.json"});
<- This is not a solution because at that point the length of $dataMapInfos is not given,
so a "for loop" has to go up to 999 which will give the error "Map00X is not found"....
Help!
The final array should look like this:
$myarray[]
- 0: Map001
- data
- 1: Map002
- data
2: ....
Last edited by a moderator:
