Jump to content
  • 0

script won't search number


Cynithic

Question

Script:if gg.isVisible(true) then gg.setVisible(false) end gg.clearResults() gg.toast('Cynithic SlitherIO Hax!') start = gg.alert('Cynithic SlitherIO Hax!','Start','Exit') if start == 1 then goto menu end if start == 2 then os.exit() end ::menu:: menu = gg.choice({'Super Sprint','2'}) if menu == 1 then goto ss end if menu == 2 then return end ::ss:: gg.searchNumber('14',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,-1,0) gg.getResults(9999) gg.editAll('30',gg.TYPE_DOUBLE)

When I press super sprint it puts a black bar on the gameguardian logo for 0.1 second then it disappears 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

I have the same problem. 

Instead of showing you the script I shall show you the error log:

Script ended:
Script error: luaj.LuaError: load /storage/emulated/0/Download/DScript.lua: luaj.LuaError: /storage/emulated/0/Download/DScript.lua:82
`gg.searchNumber("0.3;0.2;10::17" ,gg.TYPE_FLOAT)`
')' expected
	at luaj.LuaValue.error(LuaValue.java:994)
	at luaj.Globals.loadfile(Globals.java:253)
	at android.ext.Script.runScript(Script.java:5639)
	at android.ext.Script$ScriptThread.run(Script.java:5441)
Caused by: luaj.LuaError: /storage/emulated/0/Download/DScript.lua:82
`gg.searchNumber("0.3;0.2;10::17" ,gg.TYPE_FLOAT)`
')' expected
	at luaj.compiler.LexState.lexerror(LexState.java:294)
	at luaj.compiler.LexState.syntaxerror(LexState.java:298)
	at luaj.compiler.LexState.error_expected(LexState.java:934)
	at luaj.compiler.LexState.check_match(LexState.java:964)
	at luaj.compiler.LexState.funcargs(LexState.java:1427)
	at luaj.compiler.LexState.suffixedexp(LexState.java:1519)
	at luaj.compiler.LexState.exprstat(LexState.java:2118)
	at luaj.compiler.LexState.statement(LexState.java:2218)
	at luaj.compiler.LexState.statlist(LexState.java:2235)
	at luaj.compiler.LexState.body(LexState.java:1394)
	at luaj.compiler.LexState.funcstat(LexState.java:2108)
	at luaj.compiler.LexState.statement(LexState.java:2191)
	at luaj.compiler.LexState.statlist(LexState.java:2235)
	at luaj.compiler.LexState.mainfunc(LexState.java:2251)
	at luaj.compiler.LuaC$CompileState.luaY_parser(LuaC.java:121)
	at luaj.compiler.LuaC.compile(LuaC.java:99)
	at luaj.Globals.compilePrototype(Globals.java:357)
	at luaj.Globals.loadPrototype(Globals.java:345)
	at luaj.Globals.load(Globals.java:265)
	at luaj.Globals.loadfile(Globals.java:247)
	... 2 more

I'd like to say that it worked before this update was rolled out. 

 

Link to comment
Share on other sites

2 hours ago, Cynithic said:

--Script

if gg.isVisible(true) then

gg.setVisible(false) 

gg.clearResults()

gg.toast('Cynithic SlitherIO Hax!')

 

start = gg.alert('Cynithic SlitherIO Hax!','Start','Exit')

if start == 1 then goto menu end 

if start == 2 then os.exit() end

 

::menu:: 

menu = gg.choice({'Super Sprint','2'}) 

if menu == 1 then goto ss end 

if menu == 2 then return end 

 

::ss::

gg.searchNumber('14',gg.TYPE_DOUBLE) 

gg.getResults(9999) 

gg.editAll('30',gg.TYPE_DOUBLE)

gg.alert('Done')

 

 

Link to comment
Share on other sites

  • Administrators
54 minutes ago, dAtiuyTheSecond said:

I have the same problem. 

Instead of showing you the script I shall show you the error log:

In which place is "same" problem? Just because it is "error"?

You have compilation problem because you not respect lua syntax. Such code can not

54 minutes ago, dAtiuyTheSecond said:

worked before this update

It never worked.

Read error message and check your brackets, because you mess with it.

Link to comment
Share on other sites

The same problem being that it stops when it had to search an value.

 

The script worked, the new update that came out had changed something.

 

If I downgrade GG to an older version, let's say 73.11, the script runs and does what it is supposed to do. But in the current version it does not. My brackets ain't a problem on older versions why is it now? 

 

None of my other scripts work neither.

 

You should try to help others not to be frustrated when they ask for help, mate.

 

Link to comment
Share on other sites

  • Administrators

I not owe you anything. And not "should" do anything.

You not provide script example, only just words. If you want help - follow guide how to report about error. Topic about gathering errors, second post.

Now it is only useless talk, because nothing concrete shown.

I think your script try build lua code and load it from string. And now it build wrong lua code, so it crash.

But without code this is guessing game.  

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.