Posted 03 April 2015 - 02:53 PM
I am getting this error "48: bad argument: table expected, got nil" when I run my program. I am trying to use the program from the Direwolf20 let's play series to sort the aspect names at this point. Here is a link to the code http://pastebin.com/n3KumTsr or line 3 from this snippet
Any help would be greatly appreciated! Thank you in advance!
function sortEss(t)
local keys = {}
for k in pairs(t) do keys[#keys+1] = k end
table.sort(keys)
local i = 0
return function()
i = i+1
if keys[i] then
return keys[i], t[keys[i]]
end
end
end
Any help would be greatly appreciated! Thank you in advance!