Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 lua 在我的游戏中制作脚本,
将 lua libs 版本从 5.1 更新到 5.3 后,每次在函数中使用 math.X 时,游戏引擎都会出现错误
错误 :
Lua run doFile failed.attempt to index a nil value (global 'math'))
原始代码:
local value = math.random(1,10)
你有什么解决办法 ?