FangYX Posted October 22, 2020 Posted October 22, 2020 resultsCount = gg.getResultCount() results = gg.getResults(resultsCount) for x = 1, resultsCount do gg.addListItems({ [1] = { address = results[x].address + -44, flags = 4, freeze = true, value = defaults } }) gg.addListItems({ [1] = { address = results[x].address + -44, flags = 4, freeze = false, value = defaults } }) Value = gg.getListItems(1) Value = gg.getValues(Value) gg.alert(Value) end I want to see the value on that address not to change it
Lover1500 Posted October 22, 2020 Posted October 22, 2020 results = gg.getResults(99999) for i,v in ipairs(results) do v.address= v.address - 0x44 v.flags = 4 end results = gg.getValues(results) gg.alert(results[1].value) I dont understand question clearly.If you just want to see value,why did you freeze them? But i hope this code help you.
RizPrasety Posted October 22, 2020 Posted October 22, 2020 resultsCount = gg.getResultCount() results = gg.getResults(resultsCount) local value = {} for i, v in ipairs(results) do value[i] = { address = v.address - 0x44, flags = v.flags } end gg.alert(tostring(value)) -- or you can use print(value) I agree with @Lover1500 if you just wanna see then why you freeze it? Btw, hope this code will help you
FangYX Posted October 22, 2020 Author Posted October 22, 2020 2 hours ago, RizPrasety said: resultsCount = gg.getResultCount() results = gg.getResults(resultsCount) local value = {} for i, v in ipairs(results) do value[i] = { address = v.address - 0x44, flags = v.flags } end gg.alert(tostring(value)) -- or you can use print(value) I agree with @Lover1500 if you just wanna see then why you freeze it? Btw, hope this code will help you thank you it works [added 0 minutes later] 2 hours ago, Lover1500 said: results = gg.getResults(99999) for i,v in ipairs(results) do v.address= v.address - 0x44 v.flags = 4 end results = gg.getValues(results) gg.alert(results[1].value) I dont understand question clearly.If you just want to see value,why did you freeze them? But i hope this code help you. thanks it's work
Question
FangYX
I want to see the value on that address not to change it
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.