Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. function iterate(tab,x,y)
  2. if y == nil then y = 0 end
  3. if x then printConsole("===============================================") end
  4. for k,v in pairs(tab) do
  5. if not BB[k] then
  6. local str = tostring(k).." = "..tostring(v)
  7.  
  8. for i=1,y do
  9. str = "\t"..str
  10. end
  11.  
  12. printConsole(str)
  13. if type(v) == "table" and v ~= tab then
  14. iterate(v,true,y+1)
  15. end
  16. end
  17. end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement