Jump to content
  • 0

Revert function in code


MORTY_TOP

Question

gg.clearResults()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("9.20161819458;200", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.refineNumber("200", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
revert = gg.getResults(5)
if revert ~= nil then gg.setValues(revert) end
gg.clearResults()

Help me please, this code just don't revert value back, how i can revert value via command?

Quote

 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Try This Code

-- Init
local revert = nil

-- Main Code
gg.clearResults()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("9.20161819458;200", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.refineNumber("200", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
revert = gg.getResults(5)
if revert ~= nil then gg.setValues(revert) end
gg.clearResults()

 

Link to comment
Share on other sites

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.