I want to have script that takes table from the result list. Then prints out the amount of times a value appears. If the value has already been counted once it must continue to the next index. I have this script but it also counts the values that already have been counted.
local count ={}local t ={}
gg.searchNumber("3D;8D;4D::17", gg.TYPE_DWORD)-- random search
count = gg.getResultsCount()
t = gg.getResults(count)for i =1,#t do
loop =0for b, w in ipairs(t)doif t[i].value == w.value then
loop = loop +1endend
print(t[i].value, loop)end
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.
Question
nok1a
I want to have script that takes table from the result list. Then prints out the amount of times a value appears. If the value has already been counted once it must continue to the next index. I have this script but it also counts the values that already have been counted.
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.