Jump to content
  • 0

why this weird script error? plz help


nio04

Question

when i perform this (below) on lua script, its searched... but no results found. But after that, when i take that same group value & manually search it, the value founded now!!! 

 

why this happen?

 

gg.clearResults()
gg.setRanges(gg.REGION_OTHER)
gg.searchNumber("134918D;147715D", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
gg.refineNumber("134918", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
gg.getResults(50000)
gg.editAll("0", gg.TYPE_DWORD)

 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

36 minutes ago, nio04 said:

btw i m curious to know, why mine didn't work?🤔

Same happen to me.. passing ResultCount to getResult actually changing the values. I also curious why that didnt work...

Link to comment
Share on other sites

2 hours ago, nio04 said:

btw i m curious to know, why mine didn't work?🤔

Try adding logging to the code. Replace the regular call to "getResults" function with: 

local results = gg.getResults(50000)
print("Count of results:", #results)

and the call to "editAll" function with: 

print("Edited values:", gg.editAll("0", gg.TYPE_DWORD))
Link to comment
Share on other sites

24 minutes ago, nio04 said:

when i perform this (below) on lua script, its searched... but no results found. But after that, when i take that same group value & manually search it, the value founded now!!! 

 

why this happen?

 


gg.clearResults()
gg.setRanges(gg.REGION_OTHER)
gg.searchNumber("134918D;147715D", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
gg.refineNumber("134918", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
gg.getResults(50000)
gg.editAll("0", gg.TYPE_DWORD)

 

gg.clearResults()
gg.setRanges(gg.REGION_OTHER)
gg.searchNumber("134918D;147715D", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
if gg.getResultsCount() > 1 then
	gg.refineNumber("134918", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
	if gg.getResultsCount() > 1 then
		gg.getResults(gg.getResultsCount())
		gg.editAll("0", gg.TYPE_DWORD)
		gg.clearResults()
	end
end

Fixed.

Link to comment
Share on other sites

6 hours ago, HEROGAMEOfficial said:

gg.clearResults()
gg.setRanges(gg.REGION_OTHER)
gg.searchNumber("134918D;147715D", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
if gg.getResultsCount() > 1 then
	gg.refineNumber("134918", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
	if gg.getResultsCount() > 1 then
		gg.getResults(gg.getResultsCount())
		gg.editAll("0", gg.TYPE_DWORD)
		gg.clearResults()
	end
end

Fixed.

thank u very much😁

Link to comment
Share on other sites

On 7/9/2021 at 10:01 AM, HEROGAMEOfficial said:

gg.clearResults()
gg.setRanges(gg.REGION_OTHER)
gg.searchNumber("134918D;147715D", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
if gg.getResultsCount() > 1 then
	gg.refineNumber("134918", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
	if gg.getResultsCount() > 1 then
		gg.getResults(gg.getResultsCount())
		gg.editAll("0", gg.TYPE_DWORD)
		gg.clearResults()
	end
end

Fixed.

btw i m curious to know, why mine didn't 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.