Hello. I need help figuring this out.
function maketables2 (of, fl, fr)
m = gg.getResults(1)
t = {}
t.address = m[1].address + of
if fl == 1 then
tp = gg.TYPE_BYTE
elseif fl == 2 then
tp = gg.TYPE_WORD
elseif fl == 3 then
tp = gg.TYPE_DWORD
end
t.flags = tp
if fr == 1 then
t.freeze = true
t.freezeType = gg.FREEZE_NORMAL
end
return t
end
::FASTERSD::
monster1 = maketables2(-303976, 3)
monster2 = maketables2(-302632, 3)
monster3 = maketables2(-301288, 3)
monster4 = maketables2(-299944, 3)
monster5 = maketables2(-298600, 3)
monster6 = maketables2(-297256, 3)
monster7 = maketables2(-295912, 3)
monster8 = maketables2(-294568, 3)
monster9 = maketables2(-293224, 3)
monster10 = maketables2(-291880, 3)
monster11 = maketables2(-290536, 3)
monster12 = maketables2(-289192, 3)
monster13 = maketables2(-287848, 3)
monster14 = maketables2(-286504, 3)
monster15 = maketables2(-285160, 3)
I can't figure out why only monster2, monster9, and monster10 give out errors. If I remove those three then my script works fine. This is the error:
Script ended:
Perhaps this script needs the latest version of GameGuardian. Try to update to the latest version.
Script error: org.luaj.vm2.LuaError: load /storage/emulated/0/Lua Scripts/fasterchunktest.lua: org.luaj.vm2.LuaError: /storage/emulated/0/Lua Scripts/fasterchunktest.lua:65
`monster2 = maketables2(-3026326¦9, 3)`
')' expected
at org.luaj.vm2.LuaValue.error(LuaValue.java:1075)
at org.luaj.vm2.Globals.loadfile(Globals.java:204)
at android.ext.Script.runScript(Script.java:3294)
at android.ext.Script$ScriptThread.run(Script.java:3232)
Caused by: org.luaj.vm2.LuaError: /storage/emulated/0/Lua Scripts/fasterchunktest.lua:65
`monster2 = maketables2(-3026326¦9, 3)`
')' expected
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.error_expected(LexState.java:823)
at org.luaj.vm2.compiler.LexState.check_match(LexState.java:853)
at org.luaj.vm2.compiler.LexState.funcargs(LexState.java:1300)
at org.luaj.vm2.compiler.LexState.suffixedexp(LexState.java:1392)
at org.luaj.vm2.compiler.LexState.simpleexp(LexState.java:1446)
at org.luaj.vm2.compiler.LexState.subexpr(LexState.java:1559)
at org.luaj.vm2.compiler.LexState.expr(LexState.java:1577)
at org.luaj.vm2.compiler.LexState.explist(LexState.java:1277)
at org.luaj.vm2.compiler.LexState.assignment(LexState.java:1672)
at org.luaj.vm2.compiler.LexState.exprstat(LexState.java:1994)
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.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:323)
at org.luaj.vm2.Globals.loadPrototype(Globals.java:302)
at org.luaj.vm2.Globals.load(Globals.java:273)
at org.luaj.vm2.Globals.loadfile(Globals.java:202)
... 2 more