Advertisement
killer64

Untitled

Apr 25th, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. local txt="\t\t\t"
  2. local cnt=0
  3. function addnewline()
  4. if cnt%5==0 and cnt>0 then
  5. txt=txt.."\n\t\t\t"
  6. end
  7. cnt=cnt+1
  8. end
  9. for k,v in pairs(_G) do
  10. txt=txt..'"'..k..'",'
  11. addnewline()
  12. if type(v)=="table" then
  13. for l,d in pairs(v) do
  14. txt=txt..'"'..k..'.'..l..'",'
  15. addnewline()
  16. end
  17. end
  18. end
  19. local file=io.open("file","w")
  20. file:write(txt)
  21. file:close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement