Sudo debug added

This commit is contained in:
Cooldude2606
2017-09-22 15:49:45 +01:00
parent bffdc34504
commit f296c87ab7
2 changed files with 9 additions and 5 deletions

View File

@@ -75,6 +75,8 @@ end
-- allows a simple way to debug code
function debug_write(idenitys,string)
if global.debug then
if type(string) == 'table' then string = table.tostring(string)
elseif tpye(string) ~= 'string' then string = tostring(string) end
game.write_file('debug.log', '\n'..game.tick..' ['..table.concat(idenitys, " " )..'] '..string, true, 0)
end
end