I want to use a created Variable as index for a table.
Example:
[CODE]
local i = 1
Table = {}
Table[1] = "Hey!"
print(Table[i])
[/CODE]
That will work
Yeah it works...
I used an example but my normal code is not working ill do a better example:
local i = 1
Table = {}
Table.First.Ok = "Hi"
print(Table[i].Ok)
String keys are not the same as numeric keys. You have to do Table[1].Ok = "Hi"
Good then i have an option thank you!
Sorry, you need to Log In to post a reply to this thread.