attempt to index a string value with bad key ('name' is not part of the string library)
1 replies, posted
Hello FP, we coded a script which uses a for table to create DLabels, and then we get the error, the table is built like
"local tbl = {name = "blah", bool=false}", and the DLablel is called name.
the for loop is like
[code]
for _, v in pairs do
DLABEL STUFF
name:settext(v.name)
end
[/code]
What causes the error though?
v is a string, and you are trying to index it.
post full or at least more code with the full error
Sorry, you need to Log In to post a reply to this thread.