mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 12:31:41 +09:00
Sudo debug added
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user