Jump to content

This is impossible?


DylanTroonesYT

Recommended Posts

Yes, this is impossible. For me (I'm a beginner) this is impossible. For some time I have found that with the gg.promt the user can look for the value he wants. If you want to create a gg.promt where the user looks for example 32 and on gg should instead look for 32; 444444 and freeze the results, how do I?? Do you write me the commands a little? I trust you guys

Link to comment
Share on other sites

Lol

val = gg.prompt({"Value:","Edit:"}, nil, {[1] = "number", [2] = "number"})
gg.searchNumber(val[1]..";3", gg.TYPE_DWORD)
gg.searchNumber(val[1], gg.TYPE_DWORD)
t = gg.getResults(500)
gg.editAll(val[2], gg.TYPE_DWORD)
for i, v in ipairs(t) do
    if v.flags == gg.TYPE_DWORD then
      v.value = val[2]
      v.freeze = true
    end
  end
 gg.addListItems(t)
t = nil

*Don't copy-paste

Link to comment
Share on other sites

21 minutes ago, maulz said:

Lol


val = gg.prompt({"Value:","Edit:"}, nil, {[1] = "number", [2] = "number"})
gg.searchNumber(val[1]..";3", gg.TYPE_DWORD)
gg.searchNumber(val[1], gg.TYPE_DWORD)
t = gg.getResults(500)
gg.editAll(val[2], gg.TYPE_DWORD)
for i, v in ipairs(t) do
    if v.flags == gg.TYPE_DWORD then
      v.value = val[2]
      v.freeze = true
    end
  end
 gg.addListItems(t)
t = nil

*Don't copy-paste

Ok thanks, but if where there is written "Edit" the number I would like to already set up?

Link to comment
Share on other sites

11 minutes ago, DylanTroonesYT said:

Ok thanks, but if where there is written "Edit" the number I would like to already set up?

val = gg.prompt({"Value:"}, nil, {{"number"})
gg.searchNumber(val[1]..";3", gg.TYPE_DWORD)
gg.searchNumber(val[1], gg.TYPE_DWORD)
t = gg.getResults(500)
gg.editAll(9, gg.TYPE_DWORD)
for i, v in ipairs(t) do
    if v.flags == gg.TYPE_DWORD then
       v.value = "9"
       v.freeze = true
    end
  end
 gg.addListItems(t)
t = nil

 

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.