Jump to content
Sign in to follow this  
AjYouTube

GG is not search the exact value (with video)

Recommended Posts

On Sun Jan 27 2019 at 10:04 PM, Enyby said:

double.

@Enyby sorry for asking again 

 

Now problem with lua script 

5.222099e-315E~6.3614332e-315E

I search normaly with GG ( working )

When i use in script 

 

 

log

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/frag/frag.lua: org.luaj.vm2.LuaError: load @/storage/emulated/0/frag/frag.lua: java.lang.NumberFormatException: Invalid double: "5.222099e-315E"
    at org.luaj.vm2.LuaValue.error(LuaValue.java:1082)
    at org.luaj.vm2.Globals.loadfile(Globals.java:220)
    at android.ext.Script.runScript(Script.java:5274)
    at android.ext.Script$ScriptThread.run(Script.java:5111)
Caused by: org.luaj.vm2.LuaError: load @/storage/emulated/0/frag/frag.lua: java.lang.NumberFormatException: Invalid double: "5.222099e-315E"
    at org.luaj.vm2.LuaValue.error(LuaValue.java:1082)
    at org.luaj.vm2.Globals.load(Globals.java:237)
    at org.luaj.vm2.Globals.loadfile(Globals.java:214)
    ... 2 more
Caused by: java.lang.NumberFormatException: Invalid double: "5.222099e-315E"
    at java.lang.StringToReal.invalidReal(StringToReal.java:63)
    at java.lang.StringToReal.initialParse(StringToReal.java:94)
    at java.lang.StringToReal.parseDouble(StringToReal.java:282)
    at java.lang.Double.parseDouble(Double.java:301)
    at org.luaj.vm2.LuaValue.numberOf(LuaValue.java:2702)
    at org.luaj.vm2.LuaValue.parseNumber(LuaValue.java:3221)
    at org.luaj.vm2.LuaValue.parseNumber(LuaValue.java:3209)
    at org.luaj.vm2.compiler.LexState.str2d(LexState.java:361)
    at org.luaj.vm2.compiler.LexState.read_numeral(LexState.java:383)
    at org.luaj.vm2.compiler.LexState.llex(LexState.java:669)
    at org.luaj.vm2.compiler.LexState.next(LexState.java:712)
    at org.luaj.vm2.compiler.LexState.funcargs(LexState.java:1341)
    at org.luaj.vm2.compiler.LexState.suffixedexp(LexState.java:1440)
    at org.luaj.vm2.compiler.LexState.exprstat(LexState.java:2039)
    at org.luaj.vm2.compiler.LexState.statement(LexState.java:2139)
    at org.luaj.vm2.compiler.LexState.statlist(LexState.java:2156)
    at org.luaj.vm2.compiler.LexState.body(LexState.java:1315)
    at org.luaj.vm2.compiler.LexState.funcstat(LexState.java:2029)
    at org.luaj.vm2.compiler.LexState.statement(LexState.java:2112)
    at org.luaj.vm2.compiler.LexState.statlist(LexState.java:2156)
    at org.luaj.vm2.compiler.LexState.mainfunc(LexState.java:2172)
    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:279)
    at org.luaj.vm2.Globals.loadPrototype(Globals.java:266)
    at org.luaj.vm2.Globals.load(Globals.java:232)
    ... 3 more

 

 

 

Share this post


Link to post
Share on other sites

All work for me.

gg.searchNumber('5.222099e-315E~6.3614332e-315E', gg.TYPE_DOUBLE)

 

Share this post


Link to post
Share on other sites
49 minutes ago, Enyby said:

All work for me.


gg.searchNumber('5.222099e-315E~6.3614332e-315E', gg.TYPE_DOUBLE)

 

 

a = 99

 

gg.searchNumber(5.222099e-315E~6.3614332e-315E;(a-1)..~..a::15,gg.TYPE_AUTO)

 

Above showing error

 

gg.searchNumber('5.222099e-315E~6.3614332e-315E;(a-1)..~..a'::15,gg.TYPE_AUTO)

 

Game guardian skiping the line Above 

 

Share this post


Link to post
Share on other sites

Learn lua. Learn string concatenation. Learn different between string and number. Fix code.

You try write nonsense in both lines.

Share this post


Link to post
Share on other sites
35 minutes ago, Enyby said:

nonsense in both lines.

Ya 

 

36 minutes ago, Enyby said:

 Learn different between string and number

Now i got it string and number are different 

I Created nonsense  above

 

Thanks 

a = "15"
m = (a-1).. '~'..a
b = "::15"

gg.searchNumber('5.222099e-315E~6.3614332e-315E;'..m..b,gg.TYPE_FLOAT)

Working

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...