function my_blogf(format,...) Attack.log("add_blog_debug_01","special",string.format(format,unpack(arg))) end
function my_blog4(x1,x2,x3,x4)
v1,v2,v3,v4 = x1,x2,x3,x4
local sDbgStr = ""
for i = 1,4 do
local f = assert(loadstring("return "..("v"..i)))
if f() == nil then
sDbgStr = sDbgStr.."(nil),"
else
sDbgStr = sDbgStr..f()..","
end
end
Attack.log("add_blog_debug_01","special",sDbgStr)
end
然后在.lng里加个:
add_blog_debug_01=^blog_td0^dbg: [g][special][/c]
原帖由 shadewither 于 2009-7-12 17:47 发表
感谢LZ的经验,我也提一点我走过的弯路:
data和sessions目录:
这里不存在严格的目录优先级顺序,如果有同名文件说不清会读取到哪个。例如,hero.txt和arena.lua在data和sessions下面都有,结果可能游戏使用了data下面的arena ...
欢迎光临 游侠NETSHOW论坛 (https://game.ali213.net/) | Powered by Discuz! X2 |