for i, v in ipairs(t) do
if v.flags == gg.TYPE_DWORD then
v.value = "1000"
v.freeze = true
end
end
gg.addListItems(t)
t = nil
In my above code (1000) is the value i need to freeze and (-234,555,687) is the near by value which don't change.
The problem in my code is when i run the script it searches the value and freezes, but it not only freezes value 1000 but it also changes -234,555,687 to 1000 and freezes. So after this game crashes so can anyone help me with this.
So how to make it delete value -234,555,687 or delete value other than 1000 and freeze it.
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
BosenXD
Hello i trying to freeze a specific value but its freezing all the value in list so how to make it work.
gg.searchNumber("-234,555,687;1000", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
for i, v in ipairs(t) do
if v.flags == gg.TYPE_DWORD then
v.value = "1000"
v.freeze = true
end
end
gg.addListItems(t)
t = nil
In my above code (1000) is the value i need to freeze and (-234,555,687) is the near by value which don't change.
The problem in my code is when i run the script it searches the value and freezes, but it not only freezes value 1000 but it also changes -234,555,687 to 1000 and freezes. So after this game crashes so can anyone help me with this.
So how to make it delete value -234,555,687 or delete value other than 1000 and freeze it.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.