Jump to content

Granger

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by Granger

  1. @Enyby how to fix this?

    Script ended:
    Script error: luaj.LuaError: @/storage/emulated/0/qlua5/lua/test v2.lua:129
    `gg.editAll('5480', gg.TYPE_WWORD)`
    gg.editAll: bad argument #2 (nil): number expected, got nil
    level = 1, const = 83, proto = 0, upval = 1, vars = 10, code = 388
    CALL v0..v2
     ; PC 327 CODE 0180401D OP 29 A 0 B 3 C 1 Bx 1537 sBx -129534
    stack traceback:
        /storage/emulated/0/qlua5/lua/test v2.lua:129 in main chunk
        [Java]: in ?
        at luaj.Varargs.argerr(Varargs.java:259)
        at luaj.Varargs.checkint(Varargs.java:296)
        at android.ext.Script$editAll.invoke2(Script.java:3536)
        at android.ext.Script$ApiFunction.invoke(Script.java:1296)
        at luaj.lib.VarArgFunction.call(VarArgFunction.java:62)
        at luaj.LuaValue.callNotNull(LuaValue.java:3146)
        at luaj.LuaClosure.execute(LuaClosure.java:509)
        at luaj.LuaClosure.call(LuaClosure.java:159)
        at android.ext.Script.runScript(Script.java:5652)
        at android.ext.Script$ScriptThread.run(Script.java:5394)

     

    this is what i writed

    gg.searchNumber('98', gg.TYPE_WWORD)
    gg.getResults(100)
    gg.editAll('5480', gg.TYPE_WWORD)

    why not working?

  2. 3 minutes ago, Enyby said:

    This is from Android. Android has a positive button, a negative button and a neutral one.
    They are always located at certain places in the interface.
    Try, test and see.
    Pay attention to the name of the method parameters.

    Sir HoW can i write it?

    gg.alert('Granger',  'Go',   'Back')

    where to put 1-Positive

                            2-negative

                           3-neutral?

  3. @Enyby how to use this

    if dialog canceled - 0, else: 1 for positive, 2 for negative, 3 for neutral buttons.

    Examples:

    gg.alert('Script ended')

    -- Show alert with single 'ok' button

    gg.alert('Script ended', 'Yes')

    -- Show alert with single 'Yes' button

    gg.alert('A or B?', 'A', 'B')

    -- Show alert with two buttons

    gg.alert('A or C?', 'A', nil, 'C')

    -- Show alert with two buttons

    gg.alert('A or B or C?', 'A', 'B', 'C')

    -- Show alert with three buttons

    i cant fully understand with negative positive and neutral

×
×
  • 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.