move to json.data

This commit is contained in:
Cooldude2606
2017-10-29 20:01:23 +00:00
parent c5d6bed795
commit 8cb7222177

View File

@@ -90,10 +90,10 @@ function json_log(lua_table,no_log)
end end
if only_indexs then if only_indexs then
if no_log then return "["..table.concat(result,",").."]" if no_log then return "["..table.concat(result,",").."]"
else game.write_file('multi.log',"["..table.concat(result,",").."]\n",true,0) end else game.write_file('json.data',"["..table.concat(result,",").."]\n",true,0) end
else else
if no_log then return "{"..table.concat(result,",").."}" if no_log then return "{"..table.concat(result,",").."}"
else game.write_file('multi.log',"{"..table.concat(result,",").."}\n",true,0) end else game.write_file('json.data',"{"..table.concat(result,",").."}\n",true,0) end
end end
end end
-- allows a simple way to debug code; idenitys = {'string1','string2'}; string will be writen to file; no_trigger dissables the trigger useful for on_tick events -- allows a simple way to debug code; idenitys = {'string1','string2'}; string will be writen to file; no_trigger dissables the trigger useful for on_tick events