Jump to content
  • 0

GameGuardian doesn't freeze values


external7772

Question

Posted

gg.searchNumber('6;6;9;0;1;0;0::25')
p = gg.getResults(7)
gg.addListItems(p)
gg.editAll('6;6;9;6;6;9;0',gg.TYPE_DWORD)
p.freeze = true
gg.toast("Tower Locked! 🔒")
end

GameGuardian add values to list but not freeze it. How to solve this problem? 

3 answers to this question

Recommended Posts

Posted
1 hour ago, external7772 said:

p = gg.getResults(7)

There are 7 members in your table 'p'. each member has its own address, type, value etc.

1 hour ago, external7772 said:

p.freeze = true

you cant use like that. its like you create a new member instead of freeze existing 7 members. You should do freeze for each member of 7. like this.

 

p = gg.getResults(7)

p[1].value=6 p[1].freeze=true

p[2].value=6 p[2].freeze=true

.......(do the rest as above example, i skip 3 to 5)

p[6].value=0 p[6].freeze=true

p[7].value=0 p[7].freeze=true

gg.setValues(p) gg.addListItems(p) 

 

or u can do with a loop if u feels its a long steps. like this.

p = gg.getResults(7)

edits = {6, 6, 9, 6, 6, 9, 0} --this table store the values you will edit

for i, v in ipairs(p) do

    v.value=edits[i]

    v.freeze=true

end

gg.setValues(p) gg.addListItems(p)

Posted
6 hours ago, external7772 said:

gg .searchNumber('6;6;9;0;1;0;0::25')
p = gg .getResults(7)

for a, b in next, p do

b.freeze = true

end
gg .addListItems(p)
gg .editAll('6;6;9;6; 6;9;0', gg .TYPE_DWORD)
gg .toast("Tower Locked! 🔒")
end

Try it.

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.