CandraY Posted March 16, 2019 Posted March 16, 2019 x= gg.prompt({[2]='Enter Value'}, {[1]='1;3;2;', [2]='22', [3]=',000~', [4]=',999;0::45'}) Quote Expand gg.searchNumber(x[1]x[2]x[3]x[2]x[4], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) found = gg.getResultCount() gg.alert('We found: '..found) Hi guys, please help for make it. Where is my fault? Final patten for search is: 1;3;2;22,000~22,999;0::70 In every search i just want to change two fisrt number of 22,000~22,999. in gg.promp line i just wrote [2]= 'Enter Value' b'cuz it's variable. I got this error: Script ended: Script error: org.luaj.vm2.LuaError: @/sdcard/Notes/tttttt.lua:2 `gg.searchNumber(x[2],x[1], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)` bad argument #3 (number): boolean expected, got number
0 Administrators Enyby Posted March 16, 2019 Administrators Posted March 16, 2019 You try pass two params instead of concatenate it to one. Also you prompt is wrong. Second param is default values for first param. So you doing something wrong if pass second table with more elements from first table. Read API help. 1
0 CandraY Posted March 16, 2019 Author Posted March 16, 2019 On 3/16/2019 at 10:40 AM, Enyby said: You try pass two params instead of concatenate it to one. Also you prompt is wrong. Second param is default values for first param. So you doing something wrong if pass second table with more elements from first table. Read API help. Expand please give an example, I'm hard if there's no example
0 Administrators Enyby Posted March 16, 2019 Administrators Posted March 16, 2019 Examples about gg.prompt in API help. concatenate is a..b two params is a, b 1
0 maulz Posted March 16, 2019 Posted March 16, 2019 x = gg.prompt({"Enter Value"}, nil, {"number"}) if x == nil then gg.alert("Canceled") end s = "1;3;2;"..x[1].."000~"..x[1].."999;0::70" gg.searchNumber(s, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) f = gg.getResultCount() gg.alert("We found: "..f) 1
0 CandraY Posted March 16, 2019 Author Posted March 16, 2019 On 3/16/2019 at 10:45 AM, Enyby said: Examples about gg.prompt in API help. concatenate is a..b two params is a, b Expand Script Ended: Script error: org.luaj.vm2.LuaError: @/storage/emulated/0/Script GG by can/Tidak2.lua:4 `gg.searchNumber (A, B, gg.TYPE_DOUBLE, true, gg.SIGN_EQUAL, 0, -1)` bad argument #1 (nil): string expected, got nil level = 1, pc = 31 stack traceback: /storage/emulated/0/Script GG by can/Tidak2.lua:4 in main chunk [Java]: in ? at org.luaj.vm2.Varargs.argerr(Varargs.java:282) at org.luaj.vm2.Varargs.checkjstring(Varargs.java:347) at android.ext.Script$searchNumber.invokeUi(Script.java:2762) at android.ext.Script$ApiFunction.run(Script.java:1197) at android.os.Handler.handleCallback(Handler.java:815) at android.os.Handler.dispatchMessage(Handler.java:104) at android.os.Looper.loop(Looper.java:210) at android.app.ActivityThread.main(ActivityThread.java:5839) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1113) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:879) How to fix this?
0 Administrators Enyby Posted March 16, 2019 Administrators Posted March 16, 2019 Learn Lua and write meaningful code, and not just combine text without meaning. 1
0 CandraY Posted March 16, 2019 Author Posted March 16, 2019 On 3/16/2019 at 11:32 AM, maulz said: x = gg.prompt({"Enter Value"}, nil, {"number"}) if x == nil then gg.alert("Canceled") end s = "1;3;2;"..x[1].."000~"..x[1].."999;0::70" gg.searchNumber(s, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) f = gg.getResultCount() gg.alert("We found: "..f) Expand Quote d = gg.prompt({A='Your Coin', B='Your DM'}, {A='0', B='0'}) gg.toast ('Can') gg.setRanges ( gg.REGION_C_ALLOC) gg.searchNumber (A..B, gg.TYPE_DOUBLE, true, gg.SIGN_EQUAL, 0, -1) if gg.getResultCount() == 3 then gg.editAll('999999', gg.TYPE_DOUBLE) gg.alert ('Hacking Done, Enjoy') else gg.alert ('Go to game and change the value, then load the script again to continue') end Expand How to fix this:( [added 3 minutes later] On 3/16/2019 at 11:50 AM, Enyby said: Learn Lua and write meaningful code, and not just combine text without meaning. Expand Help me plz:"
0 Administrators Enyby Posted March 16, 2019 Administrators Posted March 16, 2019 Try see what you send to searchNumber For example replace gg.searchNumber with print and check all params. 1
0 CandraY Posted March 16, 2019 Author Posted March 16, 2019 On 3/16/2019 at 11:58 AM, Enyby said: Try see what you send to searchNumber For example replace gg.searchNumber with print and check all params. Expand example?
0 Administrators Enyby Posted March 16, 2019 Administrators Posted March 16, 2019 What is an example? In your code, make a replacement and see what will be in the output, at the end of the script. Read what debugging is. 1
0 CandraY Posted March 16, 2019 Author Posted March 16, 2019 On 3/16/2019 at 12:12 PM, Enyby said: What is an example? In your code, make a replacement and see what will be in the output, at the end of the script. Read what debugging is. Expand function coin() gg.clearResults() d = gg.prompt({A='Your Coin', B='Your Diamond'}, {A='0', B='0'}) gg.searchNumber(d.A, d.B, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) if gg.getResultCount() == 2 then gg.editAll('10000', gg.TYPE_DWORD) gg.alert('Hacking Done!, Enjoy') gg.clearResults() os.exit() else gg.alert('Too much values found, Go to game and change the value, then open gameguardian again') end ? 1
0 SHUVAM Posted March 16, 2019 Posted March 16, 2019 On 3/16/2019 at 12:17 PM, CandraY said: function coin()gg.clearResults()d = gg.prompt({A='Your Coin[emoji326]', B='Your Diamond[emoji184]'}, {A='0', B='0'})gg.searchNumber(d.A, d.B, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)if gg.getResultCount() == 2 thengg.editAll('10000', gg.TYPE_DWORD) gg.alert('Hacking Done!, Enjoy') gg.clearResults()os.exit() else gg.alert('Too much values found, Go to game and change the value, then open gameguardian again') end ?here is ur scriptSent from my Redmi Y1 Lite using Tapatalk [added 0 minutes later] On 3/16/2019 at 12:41 PM, SHUVAM said: here is ur scriptSent from my Redmi Y1 Lite using Tapatalk::coin::gg.clearResults()d = gg.prompt({[1]='Your Coin[emoji326]', [2]='Your Diamond[emoji184]'})value=d[1]..";"..d[2]gg.searchNumber(value, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)if gg.getResultCount() == 2 thengg.editAll('10000', gg.TYPE_DWORD) gg.alert('Hacking Done!, Enjoy') gg.clearResults()os.exit()else gg.alert('Too much values found, Go to game and change the value, then open gameguardian again')end --make other changes urselfhttp://cloud.tapatalk.com/s/5c8cef1e4637d/o.txtSent from my Redmi Y1 Lite using Tapatalk
0 CandraY Posted March 16, 2019 Author Posted March 16, 2019 On 3/16/2019 at 12:41 PM, SHUVAM said: here is ur script Sent from my Redmi Y1 Lite using Tapatalk [added 0 minutes later] ::coin:: gg.clearResults() d = gg.prompt({[1]='Your Coin', [2]='Your Diamond'}) value=d[1]..";"..d[2] gg.searchNumber(value, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) if gg.getResultCount() == 2 then gg.editAll('10000', gg.TYPE_DWORD) gg.alert('Hacking Done!, Enjoy') gg.clearResults() os.exit() else gg.alert('Too much values found, Go to game and change the value, then open gameguardian again') end --make other changes urselfhttp://cloud.tapatalk.com/s/5c8cef1e4637d/o.txt Sent from my Redmi Y1 Lite using Tapatalk Expand Ty So much^^ 1
0 SHUVAM Posted March 16, 2019 Posted March 16, 2019 On 3/16/2019 at 2:37 PM, CandraY said: Ty So much^^npSent from my Redmi Y1 Lite using Tapatalk
Question
CandraY
x= gg.prompt({[2]='Enter Value'}, {[1]='1;3;2;', [2]='22', [3]=',000~', [4]=',999;0::45'})
gg.searchNumber(x[1]x[2]x[3]x[2]x[4], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
found = gg.getResultCount()
gg.alert('We found: '..found)
Hi guys, please help for make it.
Where is my fault?
Final patten for search is:
1;3;2;22,000~22,999;0::70
In every search i just want to change two fisrt number of 22,000~22,999.
in gg.promp line i just wrote [2]= 'Enter Value' b'cuz it's variable.
I got this error:
Script ended:
Script error: org.luaj.vm2.LuaError: @/sdcard/Notes/tttttt.lua:2
`gg.searchNumber(x[2],x[1], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)`
bad argument #3 (number): boolean expected, got number
14 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now