Jump to content
Sign in to follow this  
animehack

how to clear a specific number of results in script

Recommended Posts

so like I about gg.clearResults() but that clears all the results how can I clear like 500 for example? can I just do gg.clearResults("500")? or am I just being stupid?

Share this post


Link to post
Share on other sites

t = gg.getResults(500)

gg.removeResults(t)

Share this post


Link to post
Share on other sites

Or you can do this as vice versa. (Take other than first 500 results)

t = gg.getResults(gg.getResultsCount()-500,500)
--gg.getResultsCount()-500 for example total results are 1000, 1000 - 500, you get another 500 results.
-- 500, start from the 501th result. (0 is starting point, 1 = 2, 2 = 3)

 

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
Sign in to follow this  

×
×
  • Create New...