Jump to content
  • 0

Basic Lua Script help


sammax71

Question

Let me start by saying I have absolutely no idea on how to write a script. I'm trying to learn how to do a basic group search and then change a value within this group. I've been trying to follow some posts within this forum and adapt to what I want to do but I'm still getting errors. This is what I've put in the script. Could somebody just tell me what is wrong. Thank you.

 

function start()

gg.setVisible(false)

gg.searchNumber('300;500;50;30;250;300', gg.TYPE_FLOAT)

gg.searchNumber('500', gg.TYPE_FLOAT)

gg.getResults(100)

gg.editAll('2500', gg.TYPE_FLOAT)

gg.clearResults()

gg.toast('Script made by sammax71')

gg.setVisible(true)

end

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

12 minutes ago, WhoKnowsWho said:

i dont understand how all the noobs including me got the idea to either start with either


function START()

Or worse


::START::


We must have gotten it from one guy xd

I removed that but it still doesn't work. As I said I really am clueless and just trying to learn. This is the error message I received if its of any use.

 

Script ended: Script error: luaj.o: load /storage/emulated/0/sammax71/test.lua: luaj.o: /storage/emulated/0/sammax71/test.lua:3 `gg.searchNumber('300;500;50;30;250;300', gg.TYPE_FLOAT)` unexpected symbol near  at luaj.LuaValue.a(src:997) at luaj.Globals.c_(src:255) at android.ext.Script.d(src:5992) at android.ext.Script$ScriptThread.run(src:5785) Caused by: luaj.o: /storage/emulated/0/sammax71/test.lua:3 `gg.searchNumber('300;500;50;30;250;300', gg.TYPE_FLOAT)` unexpected symbol near  at luaj.a.h.a(src:295) at luaj.a.h.c(src:299) at luaj.a.h.h(src:1537) at luaj.a.h.i(src:1548) at luaj.a.h.j(src:1628) at luaj.a.h.b(src:1741) at luaj.a.h.k(src:1759) at luaj.a.h.g(src:1462) at luaj.a.h.a(src:1479) at luaj.a.h.i(src:1574) at luaj.a.h.x(src:2173) at luaj.a.h.z(src:2273) at luaj.a.h.A(src:2290) at luaj.a.h.a(src:2306) at luaj.a.u.a(src:121) at luaj.a.t.a(src:99) at luaj.Globals.a(src:364) at luaj.Globals.a(src:352) at luaj.Globals.a(src:267) at luaj.Globals.c_(src:249) ... 2 more

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.