Jump to content
  • 0

How to write it right?


FangYX

Question

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.