Jump to content
  • 0

How to freeze directly without changing the value?


shengtaiji999

Question

Posted

I had some problems using the "gg.addListlitems" function. For example, I wanted to freeze a value, but I didn't want to assign a value to it, so I filled in the nil in the assigned item. I found that writing this would freeze the value to 0. I want to know how to solve this problem. 

I'm sorry my English is not very good, I need help, thank you! 

2 answers to this question

Recommended Posts

Posted

try this..

local t = gg.getResults(<your results>)

for i,v in pairs(t) do
  if v.flags == <your values type> then
     v.freeze = true
  end
end
gg.addListItems(t)
gg.clearResults()
gg.toast("Done")
end

it always work for me.

 

Posted

Thank you for your reply 

[added 1 minute later]
1 hour ago, MonkeySAN said:

try this..


local t = gg.getResults(<your results>)

for i,v in pairs(t) do
  if v.flags == <your values type> then
     v.freeze = true
  end
end
gg.addListItems(t)
gg.clearResults()
gg.toast("Done")
end

it always work for me.

 

Thank you for your reply 

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.