How would I make a sensitive number of tables in a function, this code gives me:
ERROR: Failed to execute new( params ) function on ‘test’.
…Users/calebplace/Desktop/CoronaProjects/MyProject/main.lua:179: attempt to index global ‘myTable’ (a nil value)
[lua]local function makeSomeTables(params)
local numTables=#params
for i=1, numTables do
myTable[i]={}
end
end[/lua]
What that should do is create a table for each member in the ‘params’ table. But it has that error above. What should I do? [import]uid: 147322 topic_id: 28941 reply_id: 328941[/import]