执行此代码时,我收到错误"尝试调用全局'forId'(零值)"
function execute(args)
local itemid = 526
local bone = forId(itemid) -- this is where the error occurs
end
function forId(bid)
local xp = 0.0
if bid == 526 or bid == 528 or bid == 2530 or bid == 2859 then
xp = 4.5
elseif bid == 3179 or bid == 3180 or bid == 3183 or bid == 3185 then
xp = 5.0
elseif bid == 530 then
xp = 53
elseif bid == 532 or bid == …Run Code Online (Sandbox Code Playgroud) lua ×1