-
Posted by mgersting on Sat, 04 Apr 2009 04:26:51
Table start condition:
SampleTable = {
["CharacterName1"] = {
[1] = {62256,1,},
},
["CharacterName2"] = {
[1] = {62256,1,},
},
}
Is there a way to add another hash element to this programatically (ie, table.insert)? -
Posted by mgersting on Sat, 04 Apr 2009 04:26:51
Table start condition:
SampleTable = {
["CharacterName1"] = {
[1] = {62256,1,},
},
["CharacterName2"] = {
[1] = {62256,1,},
},
}
Is there a way to add another hash element to this programatically (ie, table.insert)? -
Posted by jnwhiteh on Sat, 04 Apr 2009 11:35:43
This is covered on pages 44, 45 and 46. You can just directly index the table and add new elements to it.
-
Posted by mgersting on Mon, 06 Apr 2009 16:44:33
Ah, yes indeed. Sorry. It was 5am and a long night of coding. That was a dumb question.