Jump to content
  • 0

Saved value


MilkyGT

Question

Can anyone help me solve this problem so i try to find revert on saved value when i try to record script the main code is *if t ~= nil then gg.setValues(t) end* when i try put in into script the value didnt revert yet, i try find why and i think this is bcus the value didnt selected so my question (*How to revert on saved values/select saved value*)

 

thanks

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • Administrators

You can’t just take one line of code from one file, write to another file and expect it to work as it should.
You must understand how it works and why.
Obviously, restoring the old value is a complex procedure, including preserving the old values before changing them, and not just one restoration.

Link to comment
Share on other sites

4 minutes ago, Enyby said:

You can’t just take one line of code from one file, write to another file and expect it to work as it should.
You must understand how it works and why.
Obviously, restoring the old value is a complex procedure, including preserving the old values before changing them, and not just one restoration.

okok wait wait , maybe u missunderstood my english , and this is wht i mean↓↓↓

Screenshot_20191222-211500.jpg

Link to comment
Share on other sites

24 minutes ago, Enyby said:
gg.searchNumber(99, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)

local t = gg.getResults(1)
gg.addListItems(t)
gg.clearResults()


for i, v in ipairs(t) do
	v.flags = gg.TYPE_DWORD 
		v.value = 1
	end
	gg.setValues(t)
	

wait pls, gimme example on this one i just need example script then ill learn it

*revert after i edited on save list*

Link to comment
Share on other sites

18 minutes ago, MilkyGT said:

gg.searchNumber(99, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)

local t = gg.getResults(1)
gg.addListItems(t)
gg.clearResults()


for i, v in ipairs(t) do
	v.flags = gg.TYPE_DWORD 
		v.value = 1
	end
	gg.setValues(t)
	

wait pls, gimme example on this one i just need example script then ill learn it

*revert after i edited on save list*

ok nvm i got it, just add

t = nil 

gg.setValues(t)

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.