Jump to content
  • 0

I dunno how to describe


YeetMeister

Question

I've got an error with my script but i dont know how to fix it

(FoV Value + Address found by me, you can keep it idc)

Here's the Code.

--critical ops FOV seek bar Test script
mbym = 1

if gg.isVisible(true) then
  gg.setVisible(false)
end

local status = 0
if status == 0
  then
    search()
    status = 1
  end
  
if status == 1
  then
    main()
  end
  
local value = fov

function search()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber("360", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.refineAddress("944", -1, gg.TYPE_FLOAT, gg.SIGN_EQUAL, 0, -1)
local fov = gg.getResults(2)

end

function main()
menu = gg.prompt({
	"Enter FoV Value [100 ; 400]"
}, nil, {fov}, {"number"})
end

main()

while true do
    if gg.isVisible(true) then
        gg.setVisible(false)
        mbym = 1
    end
    gg.sleep(100)
	if mbym == 1 then
		main()
	end
end
  • Here's the Error
    Script ended:
    Script error: luaj.LuaError: @/storage/emulated/0/FoV Test.lua:11
    `    search()`
    attempt to call nil
    level = 1, pc = 16
    stack traceback:
    	/storage/emulated/0/FoV Test.lua:11 in main chunk
    	[Java]: in ?
    	at luaj.LuaValue.checkmetatag(LuaValue.java:2895)
    	at luaj.LuaValue.callmt(LuaValue.java:2050)
    	at luaj.LuaValue.call(LuaValue.java:1477)
    	at luaj.LuaValue.callNotNull(LuaValue.java:3233)
    	at luaj.LuaClosure.execute(LuaClosure.java:431)
    	at luaj.LuaClosure.call(LuaClosure.java:145)
    	at android.ext.Script.runScript(Script.java:5403)
    	at android.ext.Script$ScriptThread.run(Script.java:5204)

    Please help

  • @CmP 

  • @Enyby

  • @TopGEOYT

  • @BadCase

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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.