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

  • Similar Content

    • By Fallen_Stress
      Hi plz I am trying to make an script with sickbarr but I want my gg search value and addListItem and after just getListItem if I am using seekba gg search well and addListItem but getListItem dont work 
       
       
       
      ------------------------------------------
      -----------Search And Save Value------------
      -- Search Speed Hack Value
      gg.setRanges(gg.REGION_ANONYMOUS)
      a = gg.searchNumber("2.98271989822;4.45916652679;1.04395198822:9", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
      a = gg.refineNumber('4.45916652679', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
      a = gg.getResults(1)
      local r = gg.addListItems(a)

      if gg.isVisible(true) 
      then gg.setVisible(false)
      end
      gg.clearResults()
      Random=1
      function SM()
      n = gg.prompt({'Player Speed Hack:[5; 20]','exit'}, {5, false}, {'number','checkbox'})
      if n == nil then gg.sleep(1)
      else
      if n[1] then spd() end
      if n[2] then exit() end

      end
      Random=-1
      end

      function spd()
      local r = gg.getListItems(a)
      gg.editAll(n[1], gg.TYPE_FLOAT)
      end

      function exit()
      print('script by i-do-trolling')
      gg.toast('script exit')
      os.exit()
      end
      while(true)
      do
        if gg.isVisible(true) then
          Random=1
          gg.setVisible(false) 
        end 
        gg.clearResults()
        if Random==1 then   SM() end
      end
       
       
    • By Kimiice7
      Please help me how to make group search like this
      r = gg.prompt({'LEVEL [1;5]'},{1},{'number'})
      p = {'10','20','30','40','50'}

      --bad list--
      if r[1] == '1' then rp = p[1] end
      if r[1] == '2' then rp = p[2] end
      if r[1] == '3' then rp = p[3] end
      if r[1] == '4' then rp = p[4] end
      if r[1] == '5' then rp = p[5] end
      gg.searchNumber(r[1]..';100;'..rp..';1000:', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
      --How to call rp in group search without making bad list..??--
      --Because i have 100 items in table p{} --
      -- for p[x] , how to set x= r[1] ?? --
      -- i tried this --
      --gg.searchNumber(r[1]..';100;'..p[r[1]]..';1000:', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)--
      --also tried x = r[1] then call p[x] but didn't work--
      --Thanks for your help guys--
      help variable gg.prompt.lua
    • 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
       
×
×
  • Create New...