Jump to content
  • 0

Lua Script Problem


Loiids

Question

I Got Error When Making Lua Script

 

Script ended:
Script error: luaj.LuaError: @/storage/emulated/0/Cheats/test.lua:24
`if M[1] == true then BA() end`
attempt to index ? (a nil value) with key '1'
level = 1, const = 21, proto = 0, upval = 1, vars = 4, code = 48
GETTABLE v0 v0 1
 ; PC 13 CODE 0040C007 OP 7 A 0 B 0 C 259 Bx 259 sBx -130812
stack traceback:
    /storage/emulated/0/Cheats/test.lua:24 in function 'M'
    /storage/emulated/0/Cheats/test.lua:12 in function 'START'
    /storage/emulated/0/Cheats/test.lua:84 in main chunk
    [Java]: in ?
    at luaj.LuaValue.error(LuaValue.java:987)
    at luaj.LuaValue.indexerror(LuaValue.java:2810)
    at luaj.LuaValue.gettable(LuaValue.java:2717)
    at luaj.LuaValue.get(LuaValue.java:1092)
    at luaj.LuaClosure.execute(LuaClosure.java:345)
    at luaj.LuaClosure.call(LuaClosure.java:159)
    at luaj.LuaValue.callNotNull(LuaValue.java:3120)
    at luaj.LuaClosure.execute(LuaClosure.java:507)
    at luaj.LuaClosure.call(LuaClosure.java:159)
    at luaj.LuaValue.callNotNull(LuaValue.java:3120)
    at luaj.LuaClosure.execute(LuaClosure.java:507)
    at luaj.LuaClosure.call(LuaClosure.java:159)
    at android.ext.Script.runScript(Script.java:5660)
    at android.ext.Script$ScriptThread.run(Script.java:5399)

 

How To Fix This Problem ?

I Have Put "if M == nil then else end"

But Its Still Error, You Can See The Pic.

 

How To Resolve This ?

Screenshot_2019-10-07-15-13-29-386_com.facebook.katana.png

Screenshot_2019-10-07-15-17-14-000_com.rhmsoft.edit.png

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.