Jump to content
  • 0

Please help me.. My code is not working


Karansingh

Question


if gg.isVisible(true) then 
   gg.setVisible(false) 
   end 
gg.clearResults()
goto START
::START::

menu = gg.choice({'knife3','knife999'})
if menu == 1 then goto knife3 end
if menu == 2 then goto knife999 end

 
::knife3::
gg.searchNumber('3', gg.TYPE_DOUBLE)
 
::knife999::
gg.refineNumber('1', gg.TYPE_DOUBLE)
gg.getResults(1)
gg.FREEZE_NORMAL()
print('Replaced: 999, gg.editAll('999', gg.TYPE_DOUBLE))

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

1. You did not clear result. If there are plenty of results remain in your gg and you run the script, it will refine 1 or 3 instead of do new search. Use gg.clearResults()

2. For function knife3, you only search 3 in Dword and do nothing.

3. knife999 you refine number but there are no number searched.

Link to comment
Share on other sites

z=-1
function START()
menu=gg.choice({'knife3','knife999','clear'})
if menu == 1 then knife3() elseif menu == 2 then knife999() elseif menu==3 then gg.clearResults() end z=0 end
function knife3()
gg.searchNumber('3',gg.TYPE_DOUBLE)end
function knife999()
gg.refineNumber('1',gg.TYPE_DOUBLE)
gg.getResults(1)
gg.FREEZE_NORMAL()
print('Replaced 999',gg.editAll('999',gg.TYPE_DOUBLE))end
while (true) do
if gg.isVisible(true) then z=1 gg.setVisible(false) elseif z==1 then;START() end end

Its works.

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.