mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 20:16:38 +09:00
Added Bebug command
This commit is contained in:
@@ -72,5 +72,12 @@ function table.tostring( tbl )
|
||||
end
|
||||
return "{" .. table.concat( result, "," ) .. "}"
|
||||
end
|
||||
-- allows a simple way to debug code
|
||||
function debug_write(idenitys,string)
|
||||
if global.debug then
|
||||
game.write_file('debug.log', '\n'..game.tick..' ['..table.concat(idenitys, " " )..'] '..string, true, 0)
|
||||
end
|
||||
end
|
||||
Event.register(-1,function() global.debug = false end)
|
||||
--Please Only Edit Above This Line-----------------------------------------------------------
|
||||
return credits
|
||||
Reference in New Issue
Block a user