kkbs4u Posted October 26, 2020 Share Posted October 26, 2020 Please help me to correct this getiing error gg.clearResults()gg.searchNumber("0;0~1;0;0;0;0;-139,100,160;144,670,709::29" , gg.TYPE_DWORD) gg.refineNumber("-139100160", gg.TYPE_DWORD) p = gg.getResults(1) local q = { { -- First target address you wanna modified. address = p[2].address + 0x164, flags = gg.TYPE_DWORD, value = 6 }, { -- Make another table to modified other address. address = p[2].address + 0x160, -- Offset flags = gg.TYPE_DWORD, value = 6 }, { -- Make another table to modified other address. address = p[2].address + 0x15C, -- Offset flags = gg.TYPE_DWORD, value = 6 }, { -- Make another table to modified other address. address = p[2].address + -368, -- Offset flags = gg.TYPE_DWORD, value = 6 }, { -- Make another table to modified other address. address = p[2].address + -372, -- Offset flags = gg.TYPE_DWORD, value = 6 }, { -- Make another table to modified other address. address = p[2].address + -376, -- Offset flags = gg.TYPE_DWORD, value = 9 }, { -- Make another table to modified other address. address = p[2].address + -380, -- Offset flags = gg.TYPE_DWORD, value = 0 }}gg.setValues(q) gg.alert('Done') _________________________________________________:Script error: luaj.o: /storage/emulated/0/MKX NEW SCRIPT 3.0/Offset Test 26102020.lua:8` address = p[2].address + 0x164,`attempt to index ? (a nil value) with key 'address' (field '2')level = 1, const = 27, proto = 0, upval = 1, vars = 9, code = 101GETTABLE v2 v2 "address" ; PC 24 CODE 01428087 OP 7 A 2 B 2 C 266 Bx 1290 sBx -129781stack traceback: /storage/emulated/0/MKX NEW SCRIPT 3.0/Offset Test 26102020.lua:8 in main chunk [Java]: in ? at luaj.LuaValue.f(src:989) at luaj.LuaValue.c(src:2864) at luaj.LuaValue.i(src:2767) at luaj.LuaValue.w(src:1094) at luaj.LuaClosure.a(src:363) at luaj.LuaClosure.l(src:160) at android.ext.Script.d(src:6056) at android.ext.Script$ScriptThread.run(src:5785) Sent from my HD1901 using Tapatalk Link to comment Share on other sites More sharing options...
Lover1500 Posted October 26, 2020 Share Posted October 26, 2020 51 minutes ago, kkbs4u said: p = gg.getResults(1) You took got only 1 result. But 52 minutes ago, kkbs4u said: address = p[2].address + 0x164 You set the address of result 2. Link to comment Share on other sites More sharing options...
Fake_de_only_wN Posted December 27, 2020 Share Posted December 27, 2020 U dont have a function to read how it work Example: function q = address = v.address Link to comment Share on other sites More sharing options...
Question
kkbs4u
Please help me to correct this getiing error
gg.clearResults()
gg.searchNumber("0;0~1;0;0;0;0;-139,100,160;144,670,709::29" , gg.TYPE_DWORD)
gg.refineNumber("-139100160", gg.TYPE_DWORD)
p = gg.getResults(1)
local q = {
{ -- First target address you wanna modified.
address = p[2].address + 0x164,
flags = gg.TYPE_DWORD,
value = 6
},
{ -- Make another table to modified other address.
address = p[2].address + 0x160, -- Offset
flags = gg.TYPE_DWORD,
value = 6
},
{ -- Make another table to modified other address.
address = p[2].address + 0x15C, -- Offset
flags = gg.TYPE_DWORD,
value = 6
},
{ -- Make another table to modified other address.
address = p[2].address + -368, -- Offset
flags = gg.TYPE_DWORD,
value = 6
},
{ -- Make another table to modified other address.
address = p[2].address + -372, -- Offset
flags = gg.TYPE_DWORD,
value = 6
},
{ -- Make another table to modified other address.
address = p[2].address + -376, -- Offset
flags = gg.TYPE_DWORD,
value = 9
},
{ -- Make another table to modified other address.
address = p[2].address + -380, -- Offset
flags = gg.TYPE_DWORD,
value = 0
}
}
gg.setValues(q)
gg.alert('Done')
_________________________________________________:
Script error: luaj.o: /storage/emulated/0/MKX NEW SCRIPT 3.0/Offset Test 26102020.lua:8
` address = p[2].address + 0x164,`
attempt to index ? (a nil value) with key 'address' (field '2')
level = 1, const = 27, proto = 0, upval = 1, vars = 9, code = 101
GETTABLE v2 v2 "address"
; PC 24 CODE 01428087 OP 7 A 2 B 2 C 266 Bx 1290 sBx -129781
stack traceback:
/storage/emulated/0/MKX NEW SCRIPT 3.0/Offset Test 26102020.lua:8 in main chunk
[Java]: in ?
at luaj.LuaValue.f(src:989)
at luaj.LuaValue.c(src:2864)
at luaj.LuaValue.i(src:2767)
at luaj.LuaValue.w(src:1094)
at luaj.LuaClosure.a(src:363)
at luaj.LuaClosure.l(src:160)
at android.ext.Script.d(src:6056)
at android.ext.Script$ScriptThread.run(src:5785)
Sent from my HD1901 using Tapatalk
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.