CandraY
-
Posts
8 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by CandraY
-
-
3 minutes ago, 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.
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 -
3 minutes ago, Enyby said:
Try see what you send to
searchNumber
For example replace gg.searchNumber with print and check all params.
example?
0 -
17 minutes ago, 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)
Quoted = 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
How to fix this:(
[added 3 minutes later]4 minutes ago, Enyby said:Learn Lua and write meaningful code, and not just combine text without meaning.
Help me plz:"
0 -
1 hour ago, Enyby said:
Examples about gg.prompt in API help.
concatenate is
a..b
two params is
a, b
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 -
1 minute ago, 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.
please give an example, I'm hard if there's no example
0 -
x= gg.prompt({[2]='Enter Value'}, {[1]='1;3;2;', [2]='22', [3]=',000~', [4]=',999;0::45'})
Quotegg.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
Help for gg prompt searching:"
in Help
Posted
Ty So much^^