Jump to content

Recommended Posts

part of code:

             local act = gg.prompt({'Jump boost'}, nil,{'number'})
                   if act == nil then mainmenu() end
        gg.setRanges(gg.REGION_CODE_APP)
        gg.searchNumber(jump_save, gg.TYPE_FLOAT)
        gg.getResults(1)
        gg.editAll(act, gg.TYPE_FLOAT)

For some reason gg acts like im trying to use broken value or smth. Wanna know why it says that var "act" is unexpected. Tried to enter "12" or "12.5" and got same error, so idk what to do next.

PicsArt_03-21-11.00.05.jpg

Share this post


Link to post
Share on other sites

Everything is written in the error text there.
A string was expected, and a table was received.
Read what value the prompt call returns.
Try to print the value of the variable to understand what is there.

Share this post


Link to post
Share on other sites
Just now, Enyby said:

Everything is written in the error text there.
A string was expected, and a table was received.
Read what value the prompt call returns.
Try to print the value of the variable to understand what is there.

already fixed it, i just got that im trying to input full table instead of using current value of promp array, ty ❤️

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 Legendaryscript
      View File PUBG 0.18.0 HACK SCRIPT || NO RECOIL || AIM BOT|| SPEED HACK|| HIGH DAMAGE
      ✔ Sit Scope Added with different Varieties.
      ✔ Head Shot new is added in Lobby also in Game.
      ✔ No recoil Lobby Updated
      ✔Wall Hack (In Game)
      ✔Body Color (In Game)
      ✔No Recoil (Multiple Option)
      ✔Auto Aim (60m)
       For Password of Script  click here

      Submitter Legendaryscript Submitted 07/02/2020 Category PUBG  
    • By Legendaryscript
      ✔ Sit Scope Added with different Varieties.
      ✔ Head Shot new is added in Lobby also in Game.
      ✔ No recoil Lobby Updated
      ✔Wall Hack (In Game)
      ✔Body Color (In Game)
      ✔No Recoil (Multiple Option)
      ✔Auto Aim (60m)
       For Password of Script  click here

    • By DsaFes
      https://pastebin.com/twsqsyh4
    • By star360
      Create on/off button in lua script
       No need to searching values for every time
       Simple script but better ideas
      Read this simple script carefully
      You will be understand 
       
       Specially thanks to @MuhammadRizwan87
      Credit @TDOhex
       
      function search() gg.clearResults() gg.setRanges(gg.REGION_C_DATA) gg.searchNumber("1;2;3", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.refineNumber("1", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) local t = gg.getResults(3) for i, v in ipairs(t) do t[i].name = 'testoff' end gg.addListItems(t) gg.clearResults(t) end search()  
      on = "[OFF]" off = "[ON]" test = off  
      function main() menu = gg.choice({ test.." Test", "Exit"}, nil, "Example by @TDOhex")  
      if menu == 1 then if test == off then test = on local t = gg.getListItems(testoff) for i, v in ipairs(t) do if v.name == "testoff" then t[i].value = 0 t[i].name = 'teston' end gg.setValues(t) gg.addListItems(t) end else test = off local t = gg.getListItems(teston) for i, v in ipairs(t) do if v.name == "teston" then t[i].value = 1 t[i].name = 'testoff' end gg.setValues(t) gg.addListItems(t) end end  
      elseif menu == 2 then print("Thanks to visiting @TDOhex") gg.copyText('https://t.me/TDOhex') intro = "Join to @TDOhex" for i = 1, #intro do gg.toast(intro:sub(1, i) .. "_✍") gg.sleep(140) end local t = gg.getListItems() gg.removeListItems(t) os.exit() end end  
      while true do if gg.isVisible() then gg.setVisible(false) main() end end  
      I just shared it... 
      On-Off_Example.lua
    • By DsaFes
      https://pastebin.com/twsqsyh4
×
×
  • Create New...