Jump to content
Sign in to follow this  
BosenXD

Script delete value

Recommended Posts

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.

Share this post


Link to post
Share on other sites

Use refine search for 1000.

Share this post


Link to post
Share on other sites
Posted (edited)
gg.searchNumber("-234,555,687;1000", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.refineNumber("1000")
local t = gg.getResults(1)

for i, v in ipairs(t) do
    if  v.flags == gg.TYPE_DWORD then
        v.freeze = true
    end
end
gg.addListItems(t)
t = nil

?

Edited by zam535582

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
Sign in to follow this  

×
×
  • Create New...
bt365体育官bt365体育官网