I seem to be having a problem with multidimensional tables (arrays?) on Lua. I have one that looks something like this:
arr =
{
"stats" = {
"23" = {
"1" = {
"account_id" = "10",
"info" = {
"name" = "john"
}
}
}
}
}
and whenever I try to access some info using like:
local entry = "23"
print(arr['stats'][entry]['1'])
or
print(arr['stats'][entry]['1']['info']['name'])
I get nil values, is mixing strings with variables when calling tables even allowed? any idea what I'm doing wrong?
john, after fixing the syntax in the definition ofareto use["stats"] =etc.arris incorrect. Fix that and it would work just fine. If the data isn't exactly like what you put in the question, like you said in the comment, then show an example that people could reproduce your problem.