Jump to content
RezaHaxz

How to revert value

Recommended Posts

Posted (edited)

local r = gg.searchNumber(300,gg.TYPE_DWORD)

gg.clearResults()

 

how to get r value back after clearResults to search list?(not in save list)

Edited by RezaHaxz

Share this post


Link to post
Share on other sites

You need to call "getResults" function to store results list in a variable. For example:

gg.searchNumber('300', gg.TYPE_DWORD)
local r = gg.getResults(100)

Then, when results list has been cleared and you want to restore saved results, just use "loadResults" function: 

gg.loadResults(r)

Share this post


Link to post
Share on other sites
Posted (edited)
7 hours ago, CmP said:

You need to call "getResults" function to store results list in a variable. For example:

7 hours ago, CmP said:

You need to call "getResults" function to store results list in a variable. For example:



gg.searchNumber('300', gg.TYPE_DWORD)
local r = gg.getResults(100)

Then, when results list has been cleared and you want to restore saved results, just use "loadResults" function: 



gg.loadResults(r)

Then, when results list has been cleared and you want to restore saved results, just use "loadResults" function: 


gg.loadResults(r)

Thank you so much!

Edited by RezaHaxz

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