Jump to content
  • 0

What I should do to fix this?


FangYX

Question

InO2 = gg.prompt({
"Copyright© 2020 FS267\n\n Increase Time  [0;60]"},nil, {"number"})
if InO2 == nil then else
gg.clearResults()
gg.searchNumber("30;1~60::5", gg.TYPE_FLOAT)
gg.refineNumber("1~60", gg.TYPE_FLOAT)
wrong = gg.getResults(1)
gg.removeResults(wrong)
correct = gg.getResults(1)
gg.editAll(correct[1].value + InO2)
end



Script ended:
Script error: luaj.o: /storage/emulated/0/GameGuardian/script/Among Us/tes.lua:11
`gg.editAll(correct[1].value + InO2)`
attempt to perform arithmetic __add on a number value and a table value (global 'InO2')
level = 1, const = 19, proto = 0, upval = 1, vars = 5, code = 53
ADD v1 v1 v2
 ; PC 50 CODE 0080804D OP 13 A 1 B 1 C 2 Bx 514 sBx -130557
stack traceback:
	/storage/emulated/0/GameGuardian/script/Among Us/tes.lua:11 in main chunk
	[Java]: in ?
	at luaj.LuaValue.f(src:989)
	at luaj.LuaValue.b(src:2243)
	at luaj.LuaValue.d(src:2121)
	at luaj.LuaDouble.d(src:131)
	at luaj.LuaClosure.a(src:396)
	at luaj.LuaClosure.l(src:160)
	at android.ext.Script.d(src:6056)
	at android.ext.Script$ScriptThread.run(src:5785)

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

25 minutes ago, Fathoni267 said:

correct = gg.getResults(1) gg.editAll(correct[1].value + InO2)

I will use like this. 

correct = gg.getResults(1)
correct = gg.getValues(correct) -- get float value
hello = correct[1].value + InO2[1]
gg.editAll(hello, 16)

Idk if it work. 

Link to comment
Share on other sites

22 minutes ago, Lover1500 said:

I will use like this. 


correct = gg.getResults(1)
correct = gg.getValues(correct) -- get float value
hello = correct[1].value + InO2[1]
gg.editAll(hello, 16)

Idk if it work. 

thanks

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.