Jump to content
TanHaxs

How to Fix Stack Traceback Script?

Recommended Posts

Script berakhir:
Mungkin script ini membutuhkan versi terbaru dari GameGuardian. Cobalah untuk update ke versi terbaru.

kesalahan Script: luaj.LuaError: /storage/emulated/0/Download/VIP_CHEAT_PUBG213-1.lua:14
`    if menu[1] == true then`
attempt to index ? (a number value) with key '1' (global 'menu')
level = 1, const = 69, proto = 39, upval = 1, vars = 10, code = 151
GETTABLE v0 v0 1
 ; PC 24 CODE 0043C007 OP 7 A 0 B 0 C 271 Bx 271 sBx -130800
stack traceback:
    /storage/emulated/0/Download/VIP_CHEAT_PUBG213-1.lua:14 in main chunk
    [Java]: in ?
    at luaj.LuaValue.error(LuaValue.java:989)
    at luaj.LuaValue.indexerror(LuaValue.java:2864)
    at luaj.LuaValue.gettable(LuaValue.java:2767)
    at luaj.LuaValue.get(LuaValue.java:1094)
    at luaj.LuaClosure.execute(LuaClosure.java:363)
    at luaj.LuaClosure.call(LuaClosure.java:160)
    at android.ext.Script.runScript(Script.java:6018)
    at android.ext.Script$ScriptThread.run(Script.java:5747)

Is that a GG Problem or The script?

 

Screenshot_20200512-141201.png

Share this post


Link to post
Share on other sites

Script bad written. GG lua work flawlessly.

Share this post


Link to post
Share on other sites

Can i fix the script??

Share this post


Link to post
Share on other sites

menu[1] means taking the first key from table "menu". Probably you are not trying to retrieve "true" from the variable menu. 

We are not magician to guess your code. But here's some guess and solution.

Only possibility I could guess, if you are trying to check what button the user pressed, then don't have to use menu[1], use 

if(menu==1)then
  -- do whatever you want
end

 

Share this post


Link to post
Share on other sites
1 hour ago, TanHaxs said:

Can i fix the script??

You can?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...