Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 57 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. function tprint (tbl, indent)
  2.   if not indent then indent = 0 end
  3.   for k, v in pairs(tbl) do
  4.     formatting = string.rep("  ", indent) .. k .. ": "
  5.     if type(v) == "table" then
  6.       print(formatting)
  7.       tprint(v, indent+1)
  8.     elseif type(v) == 'boolean' then
  9.       print(formatting .. tostring(v))     
  10.     else
  11.       print(formatting .. v)
  12.     end
  13.   end
  14. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top