Jump to content

offtopic | how to set loops in cpp for making mod menu


nio04

Recommended Posts

my case is ~ multiple results but 1 offset. so, here is the code of that offset -

 

gg.clearResults()
gg.searchNumber("4.5947933197F;1.10000002384F" , gg.TYPE_FLOAT) 
gg.refineNumber("4.5947933197", gg.TYPE_FLOAT) 
p = gg.getResultCount(5000)               
q = gg.getResults(p)                 

for i = 1,p do
          local  r = {}
            r = {}
                    r.address = q.address + 172   
                    r.flags = 16               
                    r.value = 999             
gg.setValues(r)
end
gg.alert('Done')    
gg.clearResults()
  

 

-----end offset code-----

 

 i will have 10 or more results of ~ 4.5947933197 ||| and i want to run a loop. so, that it will take every 4.5947933197, and offset 172 and edit desire value.

 

well, if anybody know how to run this kind of loop in cpp - for making mod menu, plz plz plz share...

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.