Jump to content
  • 0

Question

Posted

Gg have clearResults() but its clear only value in Search, any way how to clear value in save?

3 answers to this question

Recommended Posts

  • 0
Posted
1 hour ago, MonkeySAN said:

Thx

15 minutes ago, HEROGAMEOfficial said:
local a = gg.getResults(gg.getResultsCount())
gg.clearResults()
local b = {
	1234,
	5678,
	9810
}
local c = {}
for z, x in next, b do
	c[x] = z
end
local d = {}
for z, x in next, a do
	if c[x.value] then
		d[#d + 1] = x
	end
end
gg.loadResults(d)

Many ways this is one 

Thx too

  • -1
Posted
local a = gg.getResults(gg.getResultsCount())
gg.clearResults()
local b = {
	1234,
	5678,
	9810
}
local c = {}
for z, x in next, b do
	c[x] = z
end
local d = {}
for z, x in next, a do
	if c[x.value] then
		d[#d + 1] = x
	end
end
gg.loadResults(d)

Many ways this is one 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.