Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function iterate(tab,x,y)
- if y == nil then y = 0 end
- if x then printConsole("===============================================") end
- for k,v in pairs(tab) do
- if not BB[k] then
- local str = tostring(k).." = "..tostring(v)
- for i=1,y do
- str = "\t"..str
- end
- printConsole(str)
- if type(v) == "table" and v ~= tab then
- iterate(v,true,y+1)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement