You have write in a guide:
Code: Select all
You can access named elements of a table also in two ways:
b = a["name"]
b = a.name
I write this simple code:
Code: Select all
pStats={["A"]="Stat 1", ["B"]="Stat 2", ["C"]="Stat 3"}
a$ = pStats["A"]
b$ = pStats.B
Code: Select all
Error in line 4 (Unnamed1): Table field "b" was not initialized!