Jump to content
Kimiice7

Help Me With gg.prompt

Recommended Posts

help gg.prompt.lua

Qjctx = 1

if gg.isVisible(true) then

  gg.setVisible(false)
end

function main()
n = gg.prompt({M='value1',N='value2'},nil,{'number','number'})
 if n == nil then os.exit() end
if n.M and n.N then A()
end
end

function A()
gg.clearResults()
gg.searchNumber(n.M..';'..n.N, gg.TYPE_DWORD)
gg.clearResults()
gg.alert(n.M.. '+'..n.N..'='..(n.M+n.M))
end

main()
while true do
    if gg.isVisible(true) then
        gg.setVisible(false)
        Qjctx = 1
    end
    gg.sleep(100)
    if Qjctx == 1 then
        main()
    end
end

 

Please help me fix this

For example i do search value1 = 4 and value2 = 4

First search work fine..

But when i try to do second search i got this error..

After restarting script its work again.. And always second action got error..

 

Thanks for your help.. 


 

Screenshot_2019-09-09-04-01-38-486_com.rhmsoft.edit.png

Edited by Kimiice7

Share this post


Link to post
Share on other sites

29 minutes ago, Kimiice7 said:

help gg.prompt.lua 516 B · 1 download

Qjctx = 1

if gg.isVisible(true) then

  gg.setVisible(false)
end

function main()
n = gg.prompt({M='value1',N='value2'},nil,{'number','number'})
 if n == nil then os.exit() end
if n.M and n.N then A()
end
end

function A()
gg.clearResults()
gg.searchNumber(n.M..';'..n.N, gg.TYPE_DWORD)
gg.clearResults()
gg.alert(n.M.. '+'..n.N..'='..(n.M+n.M))
end

main()
while true do
    if gg.isVisible(true) then
        gg.setVisible(false)
        Qjctx = 1
    end
    gg.sleep(100)
    if Qjctx == 1 then
        main()
    end
end

 

Please help me fix this

For example i do search value1 = 4 and value2 = 4

First search work fine..

But when i try to do second search i got this error..

After restarting script its work again.. And always second action got error..

 

Thanks for your help.. 


 

Screenshot_2019-09-09-04-01-38-486_com.rhmsoft.edit.png

Doesn't seem to have any error.Script is running fine. Just gives addition result wrong but Script execution doesn't have any errors.I took log also to show..

 

help gg.prompt.lua_1567979079241_2023344751.log.txt

Edited by AKRAMRAZA
Attached log

Share this post


Link to post
Share on other sites
9 hours ago, Kimiice7 said:

help gg.prompt.lua 516 B · 3 downloads

Qjctx = 1

if gg.isVisible(true) then

  gg.setVisible(false)
end

function main()
n = gg.prompt({M='value1',N='value2'},nil,{'number','number'})
 if n == nil then os.exit() end
if n.M and n.N then A()
end
end

function A()
gg.clearResults()
gg.searchNumber(n.M..';'..n.N, gg.TYPE_DWORD)
gg.clearResults()
gg.alert(n.M.. '+'..n.N..'='..(n.M+n.M))
end

main()
while true do
    if gg.isVisible(true) then
        gg.setVisible(false)
        Qjctx = 1
    end
    gg.sleep(100)
    if Qjctx == 1 then
        main()
    end
end

 

Please help me fix this

For example i do search value1 = 4 and value2 = 4

First search work fine..

But when i try to do second search i got this error..

After restarting script its work again.. And always second action got error..

 

Thanks for your help.. 


 

Screenshot_2019-09-09-04-01-38-486_com.rhmsoft.edit.png

Update your GG

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

  • Similar Content

    • By g1doz
      Q1: How use fast freeze options in script
      Q2: if i want use gg.required but i want this to check latest version automatically, Not to write him the current version number, is this possible?
      Q3: I'm read about function make Request in gameguardian.net/help but  there is something I did not understand is how do I exchange data between script and Server For example I asked a user to enter a user name and password and this data I want to send to server and he compares them with the Database And tell him if they are true or wrong, how it is done on This function.
      Q4: For example, I want to create a script that changes the name of the player, I'm going to use the search in gg option "Text UTF-8" and after search they show me the results of the type Byte, Then I change it normally, For example, I want to show a pop-up message telling him to enter your name in the first cell and your new name in the second cell, How do I do this on Script?.
      Thanks guys for help, i really love this forum.
    • By juyox
      x= gg.prompt({[2]='Enter Value'}, {[1]='1;3;2;', [2]='22', [3]=',000~', [4]=',999;0::45'}) gg.searchNumber(x[1]x[2]x[3]x[2]x[4], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) found = gg.getResultCount() gg.alert('We found: '..found) Hi guys, please help for make it.
      Where is my fault?
      Final patten for search is:
      1;3;2;22,000~22,999;0::70
      In every search i just want to change two fisrt number of 22,000~22,999.
      in gg.promp line i just wrote [2]= 'Enter Value' b'cuz it's  variable.
      I got this error:
      Script ended:
      Script error: org.luaj.vm2.LuaError: @/sdcard/Notes/tttttt.lua:2
      `gg.searchNumber(x[2],x[1], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)`
      bad argument #3 (number): boolean expected, got number
       
    • By YeetMeister
      So i am making a "Private" script menu for a friend so he gets into hacking too.
       
      But i dont know how to solve this problem
       
      I hope you get my Idea xD
       
      UI = 1 if gg.isVisible(true) then gg.setVisible(false) end CustomFoV = result[4] -- function main() gg.alert("{Press 'OK' to activate Hacks}\nthis hack Contains:\n~NoRecoil\n~Bigger Hitbox\n~FoV") Result = gg.prompt({"No Recoil","Bigger Hitbox", "FoV","Custom FoV(Needed if checked)\nSelect a number between 150 and 360"},nil,{"checkbox", "checkbox","checkbox","number"}) if result[1] then NoRecoil() end if result[2] then BigHitbox() end if result[3] then FoV() end if result[4] == FoV() then CustomFoV end UI =-1 end -- function NoRecoil() end function BigHitbox() end function FoV() end -- function exit() gg.toast("This script is made by \nஜ۩۩ஜ[K/D Destroyer]ஜ۩۩ஜ \nPrivate script made for wifi-iwnl") print("This script is made by \nஜ۩۩ஜ[K/D Destroyer]ஜ۩۩ஜ \nPrivate script made for wifi-iwnl") os.exit() end -- main() while true do if gg.isVisible(true) then gg.setVisible(false) UI = 1 end gg.sleep(100) if UI == 1 then main() end end  
    • By I-Do-Trolling
      So i this code:
      local old = gg.getRanges();
        gg.setRanges(gg.REGION_CODE_APP)
        gg.searchNumber ('360', gg.TYPE_FLOAT)
        gg.searchAddress('1C4',FFF)
        v = gg.prompt({i = "[setFov]Select a Number Between 175 and 360"}, {i = "0"})
      if v == nil then
        gg.clearResults()
        gg.toast("FoV Unchanged")
      else
        gg.getResults (5)
        gg.editAll(v["i"], gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,
        0, -1)
        print("Changed FoV to:" .. v["i"])
        gg.clearResults()
        end
       
      But i wanna to turn it off 
      Can anyone help me 
×
×
  • Create New...