I'm attempting to use serialize to store tables. I can get everything put INTO a variable just fine. It looks great and all, but I can't seem to load it. Please tell me what I'm doing wrong here:
This will store the temp variable just fine, but the only output is: function: 00D11968 which suggests that loadstring isn't doing much of anything.
require "serialize"
do
temp = { 1,2,3 }
serialize.save( "temp", temp )
temp = {}
print( loadstring( GetVariable( "temp" ) ) )
for i,v in ipairs(temp) do
print(i,v)
end
end
This will store the temp variable just fine, but the only output is: function: 00D11968 which suggests that loadstring isn't doing much of anything.