Jump to content
  • 0

Is this bug?


UpdateRosScriptPls

Question

What is wrong with this please someone help me

 

GgScript ended:
Script error: org.luaj.vm2.LuaError: load /storage/emulated/0/DCIM/aa: org.luaj.vm2.LuaError: /storage/emulated/0/DCIM/aa:15
`local old = gg.getRanges();`
syntax error
    at org.luaj.vm2.LuaValue.error(LuaValue.java:1075)
    at org.luaj.vm2.Globals.loadfile(Globals.java:208)
    at android.ext.Script.runScript(Script.java:3792)
    at android.ext.Script$ScriptThread.run(Script.java:3645)
Caused by: org.luaj.vm2.LuaError: /storage/emulated/0/DCIM/aa:15
`local old = gg.getRanges();`
syntax error
    at org.luaj.vm2.compiler.LexState.lexerror(LexState.java:270)
    at org.luaj.vm2.compiler.LexState.syntaxerror(LexState.java:274)
    at org.luaj.vm2.compiler.LexState.check_condition(LexState.java:846)
    at org.luaj.vm2.compiler.LexState.exprstat(LexState.java:1997)
    at org.luaj.vm2.compiler.LexState.statement(LexState.java:2091)
    at org.luaj.vm2.compiler.LexState.statlist(LexState.java:2108)
    at org.luaj.vm2.compiler.LexState.body(LexState.java:1267)
    at org.luaj.vm2.compiler.LexState.funcstat(LexState.java:1981)
    at org.luaj.vm2.compiler.LexState.statement(LexState.java:2064)
    at org.luaj.vm2.compiler.LexState.statlist(LexState.java:2108)
    at org.luaj.vm2.compiler.LexState.mainfunc(LexState.java:2124)
    at org.luaj.vm2.compiler.LuaC$CompileState.luaY_parser(LuaC.java:129)
    at org.luaj.vm2.compiler.LuaC.compile(LuaC.java:99)
    at org.luaj.vm2.Globals.compilePrototype(Globals.java:327)
    at org.luaj.vm2.Globals.loadPrototype(Globals.java:306)
    at org.luaj.vm2.Globals.load(Globals.java:277)
    at org.luaj.vm2.Globals.loadfile(Globals.java:202)
    ... 2 more

Screenshot_2018-07-19-21-55-32.png

Screenshot_2018-07-19-21-55-48.png

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

At line 14 you forgot round brackets after function's name. They are necessary if you want to call the function.
Also, you don't need to put semicolon after the statement, it is Lua, not C or C++.

Add brackets after function names where function call is required, like this:

gg.clearResults()

 

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.