Jump to content
  • 0

Help me to fix thid


HackerAsura

Question

Hello I got this error while doing a script.

Plz help me to fix it

Script ended:
Script error: luaj.n: /storage/emulated/legacy/!GG NORMAL/BattleOFWarshipsVIP.lua:4
`gg.removeResults('table')`
bad argument #1 to 'gg.removeResults' (string: table expected, got string) (field 'removeResults')
level = 1, const = 12, proto = 0, upval = 1, vars = 3, code = 26
CALL v0..v1
 ; PC 18 CODE 0100401D OP 29 A 0 B 2 C 1 Bx 1025 sBx -130046
stack traceback:
    /storage/emulated/legacy/!GG NORMAL/BattleOFWarshipsVIP.lua:4 in main chunk
    [Java]: in ?
    at luaj.ap.a(src:265)
    at luaj.ap.t(src:343)
    at android.ext.Script.a(src:3864)
    at android.ext.Script$removeResults.b(src:3840)
    at android.ext.Script$ApiFunction.a_(src:1393)
    at luaj.lib.VarArgFunction.a(src:58)
    at luaj.LuaClosure.a(src:534)
    at luaj.LuaClosure.l(src:160)
    at android.ext.Script.d(src:6056)
    at android.ext.Script$ScriptThread.run(src:5785)

BattleOFWarshipsVIP.lua

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

You should not pass this function a string as a parameter, if you want to remove an amount of results then use like this

gg.removeResults(10)

if you want to clear all results items

gg.clearResults()

 

if you want to remove items from the saved list use this 

gg.removeListItems(table [table name])

to remove all items 

gg.clearList()

 

 

 

 

 

 

Link to comment
Share on other sites

2 hours ago, HackerAsura said:

Plz help me to fix it

Using "clearResults" function is a better solution for your case:

gg.setRanges(gg.REGION_ANONYMOUS)
gg.clearResults() -- To make a new search
gg.searchNumber('1000x4',gg.TYPE_DWORD)
gg.getResults(1000)
gg.editAll('1x4',gg.TYPE_DWORD)
gg.clearResults() -- To clear results list after editing their values
Link to comment
Share on other sites

Hi thanks for the reply.

But I founded a value (which changes a in game store price - 1000x4)

But I have to delete 200 results( first 100 and 2nd 100) to get correct value. ( If I try to edit all , game crashes . 

I need to get a script for above procedure. 

Waiting for your reply

Link to comment
Share on other sites

33 minutes ago, HackerAsura said:

But I have to delete 200 results( first 100 and 2nd 100) to get correct value.

In my code above change this line: 

gg.getResults(1000)

to 

gg.getResults(1000, 200)
Link to comment
Share on other sites

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.