LUA 语法问题
x=10locali=1whilei<=xdolocalx=i*2print(x)i=i+1end提示错误:stdin:1:attempttocomparenilwith...
x = 10
local i = 1
while i<=x do
local x = i*2
print(x)
i = i + 1
end
提示错误:stdin:1: attempt to compare nil with number 这是怎么回事呀? 展开
local i = 1
while i<=x do
local x = i*2
print(x)
i = i + 1
end
提示错误:stdin:1: attempt to compare nil with number 这是怎么回事呀? 展开
2018-04-24
展开全部
error: attempt to compare nil with number
stack traceback:
1: function `x888888_UpdateHonorRecord' at line 2119 [string "?"烂没]
2: function `x888888_CalculateHonor'饥侍纳 at line 1871 [string "谈亩?"]
3: function `x888888_ProcMapPlayerDie' at line 2362 [string "?"]
OnScriptError 4:[1]
(09:22:17 269.220 47366499928535) Lua stack step leave error in fn : \system\systemmain.lua x888888_ProcMapPlayerDie 151 15000 15001
stack traceback:
1: function `x888888_UpdateHonorRecord' at line 2119 [string "?"烂没]
2: function `x888888_CalculateHonor'饥侍纳 at line 1871 [string "谈亩?"]
3: function `x888888_ProcMapPlayerDie' at line 2362 [string "?"]
OnScriptError 4:[1]
(09:22:17 269.220 47366499928535) Lua stack step leave error in fn : \system\systemmain.lua x888888_ProcMapPlayerDie 151 15000 15001
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询