Jump to content
  • 0

clearResults() for value in save


kotako
 Share

Question

3 answers to this question

Recommended Posts

  • 0
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

Link to comment
Share on other sites

  • -1
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 

Link to comment
Share on other sites

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
 Share

×
×
  • 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.