Jump to content
XxhentaixX

attempt to concatenate nil and string

Recommended Posts

I have some weird issue, this is the first time I counter this error and it makes no since to me, everything I believe I ddi correct, but im not sure but I think this is because I maby at the maximum of my menu...have a look at the error...it search the value, but asoon as it start searching afher "gg.toast('enjoy') it ill show it results and then give this error: 
 

local old = gg.getRanges();
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('25.0E;50.0E;100.0E;200.0E;400.0E;800.0E;1,600.0E;3,200.0E;6,400.0E;12,800.0E;25,600.0E;51,200.0E;102,400.0E;204,800.0E;409,600.0E;819,200.0E;1,638,400.0E;3,276,800.0E;6,553,600.0E;13,107,200.0E;26,214,400.0E;52,428,800.0E;104,857,600.0E;209,715,200.0E;419,430,400.0E;838,860,800.0E;1,677,721,600.0E;3,355,443,200.0E;6,710,886,400.0E::2065', gg.TYPE_DOUBLE)
t = gg.getResults(29)
gg.addListItems(t)
gg.clearResults()
gg.searchNumber('34.25F;38.25F;42.25F;46.25F;50.25F;54.25F;58.25F;62.25F;68.5F;76.5F;84.5F;92.5F;100.5F;108.5F;116.5F;124.5F:1141', gg.TYPE_FLOAT)
r = gg.getResults(16)
gg.addListItems(r)
gg.toast('Part 2 complete')
gg.sleep(1000)
gg.toast('enjoy')
gg.clearResults()
gg.searchNumber('2;240D;1,120D;372D;300D::', gg.TYPE_DWORD)
gg.searchNumber(2, gg.TYPE_DWORD)
b = gg.getResults(50)
gg.addListItems(b)
gg.clearResults()
gg.searchNumber('4;240D;1,120D;372D;300D::', gg.TYPE_DWORD)
gg.searchNumber(4, gg.TYPE_DWORD)
b = gg.getResults(50)
gg.addListItems(b)
gg.clearResults()
gg.searchNumber('6;240D;1,120D;372D;300D::', gg.TYPE_DWORD)
gg.searchNumber(6, gg.TYPE_DWORD)
b = gg.getResults(50)
gg.addListItems(b)
gg.clearResults()
gg.searchNumber('8;240D;1,120D;372D;300D::', gg.TYPE_DWORD)
gg.searchNumber(8, gg.TYPE_DWORD)
b = gg.getResults(50)
gg.addListItems(b)
gg.clearResults()
gg.searchNumber('10;240D;1,120D;372D;300D::', gg.TYPE_DWORD)
gg.searchNumber(10, gg.TYPE_DWORD)
b = gg.getResults(50)
gg.addListItems(b)
gg.clearResults()
gg.searchNumber('10;240D;1,120D;372D;300D::', gg.TYPE_DWORD)
gg.searchNumber(12, gg.TYPE_DWORD)
b = gg.getResults(50)
gg.addListItems(b)
gg.clearResults()
gg.searchNumber('14;240D;1,120D;372D;300D::', gg.TYPE_DWORD)
gg.searchNumber(14, gg.TYPE_DWORD)
b = gg.getResults(50)
gg.addListItems(b)
gg.clearResults()
gg.searchNumber('16;240D;1,120D;372D;300D::', gg.TYPE_DWORD)
gg.searchNumber(16, gg.TYPE_DWORD)
b = gg.getResults(50)
gg.addListItems(b)
gg.clearResults()
gg.searchNumber('18;240D;1,120D;372D;300D::', gg.TYPE_DWORD)
gg.searchNumber(18, gg.TYPE_DWORD)
b = gg.getResults(50)
gg.addListItems(b)
gg.clearResults()
gg.searchNumber('20;240D;1,120D;372D;300D::', gg.TYPE_DWORD)
gg.searchNumber(20, gg.TYPE_DWORD)
b = gg.getResults(50)
gg.addListItems(b)
gg.clearResults()
gg.searchNumber('0;240D;1,120D;372D;300D::512', gg.TYPE_DWORD)
gg.searchNumber(0, gg.TYPE_DWORD)
b = gg.getResults(50)
gg.addListItems(b)
gg.setRanges(old)

 

 

on = '[ON]'
off = '[OFF]'
fish5 = off
fish6 = off
fish7 = off
fish8 = off
fish9 = off
fish10 = off
fish11 = off
fish12 = off
fish13 = off
fish14 = off
fish15 = off
fish16 = off
fish17 = off
fish18 = off
fish19 = off
fish20 = off
fish21 = off
fish22 = off
fish23 = off
fish24 = off
fish25 = off
fish26 = off
fish27 = off
fish28 = off
fish29 = off
fish30 = off
fish31 = off
fish32 = off
fish33 = off
fish34 = off
fish35 = off
fish36 = off
fish37 = off
fish38 = off
fish39 = off
fish40 = off
fish41 = off
fish42 = off
fish43 = off
fish44 = off
fish45 = off
fish46 = off
fish47 = off
fish48 = off
fish49 = off
speed = off
river = off








normaly it is supposed to work like I made it...

@saiaapiz
@CmP

Screenshot_20181225-050859.png

Edited by XxhentaixX

Share this post


Link to post
Share on other sites

Make sure that the variable "river" is defined before it is used.

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

×
×
  • Create New...