


Just like the name(uneval). it's inversion of loadstring but this function only apply to tables.
This lua is useful when you want save player data.








Just put table_uneval.txt at desired folder(sys/lua). EDIT server.lua to dofile the lua

none, as the function is created inside table table(the table.insert location)


















1. Actually i don't want to upload it at file archive as it's very small script
2. Bugs? Suggestion? on comments



1
2
3
2
3
f=io.open("pl_"..usgn..".txt","w") f:write(table.uneval(PLAYERS[id])) f:close()

1
2
3
2
3
f=io.open("pl_"..usgn..".txt","r") PLAYERS[id]=loadstring("return "..f:read("*a"))() f:close()

1
2
2
s=table.uneval(_G) -- LUA ERROR: infinite-loop detected -- Reason: _G global variable also have _G key and value same as _G(_G._G==_G)





















edited 5×, last 15.05.14 02:30:05 pm
Approved by Seekay
Download
2 kb, 539 Downloads