Does this look right?
local data = {}
for i = 1, 22 do
table.insert( data, data[i].title = "A title here")
end
I get a syntax error in the insert(), and I’m not sure what’s causing it.
I’m guessing data[i].title isn’t correct.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think this is what you’re trying to do:
data[i]will beniluntil you create a new table and assign it there. Also, it looks like you’re either trying to insert the title intodataor trying to insert a new table intodata, it’s hard to tell which. My example is assuming you’re trying to make a new table, assign a title to it, and put that new table indata.