spirit6
Jun 25 2009, 22:17
I am busy with the popup menu from Dr Eyeball. First of all it works great and as long as i dont try fancy stuff well it all goes honky donky.
The menu builds up from arrays and here is a part of the code that will produce some items in the menu:
// TODO: Fill array with real player list
PlayerList_MenuArray =
[
[ ["Item", "Dr Eyeball"],
["Action", "player globalChat 'type: #vote admin [TOG] Dr Eyeball'"]
],
[ ["Item", "The Terminator"],
["Action", ""]
],
[ ["Item", "Prince Charles"],
["Action", ""]
],
[ ["Item", "Mr Munchkin"],
["Action", ""]
]
];
As you can see an array is filled. As stated above it says: to do, make that array fillup with real players. Now i want something totaly different but the idea is the same.
I want that filled up dynamic but i cant seem to get that done in any way. Its may lack of array knowledge that is cracking here. After 5 hours i am smashing my head here. HELP!!!:confused:
I tried array = array + array , array plus array what ever array, private array with + but i jsut dont get it at all. Cry cry.
Now functional what i want if we keep on what the code suggests:
Make the above array (i gues its array in array as element right and then some more even) dynamic by variables and depending on number of players or something.
Just some help on how to build up that stuff dynamic would already be enough :P
BIG CHEERS for who helps me here, i am so incredible stuck here.
The menu builds up from arrays and here is a part of the code that will produce some items in the menu:
// TODO: Fill array with real player list
PlayerList_MenuArray =
[
[ ["Item", "Dr Eyeball"],
["Action", "player globalChat 'type: #vote admin [TOG] Dr Eyeball'"]
],
[ ["Item", "The Terminator"],
["Action", ""]
],
[ ["Item", "Prince Charles"],
["Action", ""]
],
[ ["Item", "Mr Munchkin"],
["Action", ""]
]
];
As you can see an array is filled. As stated above it says: to do, make that array fillup with real players. Now i want something totaly different but the idea is the same.
I want that filled up dynamic but i cant seem to get that done in any way. Its may lack of array knowledge that is cracking here. After 5 hours i am smashing my head here. HELP!!!:confused:
I tried array = array + array , array plus array what ever array, private array with + but i jsut dont get it at all. Cry cry.
Now functional what i want if we keep on what the code suggests:
Make the above array (i gues its array in array as element right and then some more even) dynamic by variables and depending on number of players or something.
Just some help on how to build up that stuff dynamic would already be enough :P
BIG CHEERS for who helps me here, i am so incredible stuck here.