The data variable is a parameter in a function. sheeple is an instantiated table. I printed out the type of id and data which printed "number" and then "string" respectively. However, upon the execution of sheeple[id]=data, I get the error "index expected, got function." Thank you for any help.
local id = 0
local tmp = data:sub(8)
tmp = tmp:sub(1,tmp:find("[^0-9]")-1)
id = tonumber(tmp)
queue(id)
print(type(id))
print(type(data))
sheeple[id]=data
id, which is a function(just a guess)? Do you have a backtrace?sheepleis doing something especial with indexing. Look at its metatable, especially the __index and __newindex methods.