Jump to content
Dr_Kol

How do I filter values?

Recommended Posts

Pls can anyone help me? I need to know how to filter values in Game Guardian. And how do I filter in scripts too? 

Share this post


Link to post
Share on other sites

GGRight top, filter range.

Script: Use table.

Share this post


Link to post
Share on other sites
3 hours ago, ItsSC said:

GGRight top, filter range.

Script: Use table.

How do you use table? I thought using gg.getResults() automatically filters searches

[added 0 minutes later]
3 hours ago, ItsSC said:

GGRight top, filter range.

Script: Use table.

Bruv, I need some help from you on some codes. Pls can you help? 

Share this post


Link to post
Share on other sites
2 minutes ago, El_dorado said:

How do you use table? I thought using gg.getResults() automatically filters searches

Don't he mean filter values? Like 
1,214,555,1000,200000000 
Filter out 1 to 1000 then get 
1,214,555,1000

If I don't get this wrong, then this can be solve by table.

local t1 = gg.getResults(gg.getResultCount())
-- Start filtering value you want
filtered = {}
for i, v in pairs(t1)do 
  if(v>1 and v<1000) then -- Filtering range
  filtered[#filtered+1] = v
  end
end
print(filtered)

 

Share this post


Link to post
Share on other sites

Thanks guys. 

Share this post


Link to post
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

×
×
  • Create New...