[ @_yourram ]
---
If you understood it, you would not say "I don't know what mistakes I made". And no, I can't help you to fix it because I don't know what you're trying to search here:
---[Fix this search yourself]---
gg.searchNumber(':nDstDist', 1)
gg.refineNumber('110', 1)
maintest = gg.getResults(6)
gg.clearResults()
maintest2 = maintest[1].address - 0x18
gg.searchNumber(maintest2, 32)
-------------------------------
---
I can only help fixing the 'table':
local results = gg.getResults(19)
if results ~= nil then
local elements = {}
for k, v in ipairs(results) do
table.insert(elements, {address = v.address, flags = 16, value = "-999"})
end
gg.setValues(elements)
end
---