2023-07-15 17:03:16 脚本错误: luaj.n: /storage/emulated/0/跑图适配o内存.lua:159 ` return pcall(load(gg['makeRequest'](sr)['content']))` bad argument #1 to 'load' (string or function expected, got nil) (global 'load') level = 1, const = 5, proto = 0, upval = 1, vars = 5, code = 11 CALL v2..v3 SET_TOP ; PC 7 CODE 0100009D OP 29 A 2 B 2 C 0 Bx 1024 sBx -130047 stack traceback: /storage/emulated/0/跑图适配o内存.lua:159 in function 'Sky.load' /storage/emulated/0/跑图适配o内存.lua:192 in main chunk [Java]: in ? at luaj.LuaValue.a(Unknown Source:2) at luaj.lib.BaseLib$load.a_(Unknown Source:39) at luaj.LuaClosure.a(Unknown Source:1729) at luaj.LuaClosure.a(Unknown Source:16) at luaj.LuaClosure.a(Unknown Source:1775) at luaj.LuaClosure.l(Unknown Source:7) at android.ext.Script.d(Unknown Source:493) at android.ext.Script$ScriptThread.run(Unknown Source:16)
时间: 2024-04-17 21:23:49 浏览: 264
eve-ng-win-client
这个错误是由于在文件`/storage/emulated/0/跑图适配o内存.lua`的第159行使用了`load`函数,但是传入的参数是`nil`,而不是一个字符串或函数。`load`函数需要一个字符串或者函数作为参数来加载代码,所以出现了这个错误。
你可以检查一下你的代码,在调用`load`函数之前,确保传入的参数不为`nil`。另外,你也可以查看一下`gg['makeRequest'](sr)['content']`的返回值是否正确,是否包含了你要加载的代码。
阅读全文