Hi everyone, i was just wondering how i could pass a list from a function to another.
eg. I have a function that creates a list of elements, my searchResults list. And freezes all of them using a for cicle.
How can i unfreeze them using another function?
I did this:
::Func:: gg.searchNumber('myValue',gg.TYPE_DWORD)
searchResults = gg.getResults(50)
for i, v in ipairs(searchResults) do
v.freeze = true
end gg.addListItems(searchResults) gg.toast('HACKED')
::Unfreeze:: gg.searchNumber('sameValue',gg.TYPE_DWORD)
searchResults = gg.getResults(50)
for i, v in ipairs(searchResults) do
v.freeze = false
end gg.removeListItems(searchResults) gg.toast('All Done')
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.
Question
Scrayil
Hi everyone, i was just wondering how i could pass a list from a function to another.
eg. I have a function that creates a list of elements, my searchResults list. And freezes all of them using a for cicle.
How can i unfreeze them using another function?
I did this:
::Func::
gg.searchNumber('myValue',gg.TYPE_DWORD)
searchResults = gg.getResults(50)
for i, v in ipairs(searchResults) do
v.freeze = true
end
gg.addListItems(searchResults)
gg.toast('HACKED')
::Unfreeze::
gg.searchNumber('sameValue',gg.TYPE_DWORD)
searchResults = gg.getResults(50)
for i, v in ipairs(searchResults) do
v.freeze = false
end
gg.removeListItems(searchResults)
gg.toast('All Done')
It doesn't work..
Can you explain to me how to solve this?
Thank you in advance!
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.