Jump to content
  • 0

My lua script didn't working


xlikegamer

Question

No compilng error but didn't work

No matter on searching and add to the save list [Basic()]

But Not Working Freeze()

please help me ㅠㅠ

 

--===============================================

function Main()
  gg.setRanges(gg.REGION_ANONYMOUS)
  LOC = gg.choice({'BasicSearch','Freeze'},nil,'experimentversion')
  if LOC == 1 then Basic()  
  elseif LOC == 2 then Freeze() 
  end 
end 

function Basic()
gg.clearResults()
gg.clearList()
gg.searchNumber('1585515520;1585507328',gg.TYPE_DWORD,false,gg.SIGN_EQUAL,0,-1)
gg.searchNumber('1585515520',gg.TYPE_DWORD,false,gg.SIGN_EQUAL,0,-1)
x = gg.getResults(10)
gg.addListItems(x)
gg.clearResults()
gg.searchNumber('1585515520;1585507328',gg.TYPE_DWORD,false,gg.SIGN_EQUAL,0,-1)
gg.searchNumber('1585507328',gg.TYPE_DWORD,false,gg.SIGN_EQUAL,0,-1)
y = gg.getResults(10)
gg.addListItems(y)
gg.clearResults()
end

function Freeze()
local f = gg.getListItems() 
f[1].freeze=true
f[2].freeze=true
end

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • Administrators

You need to learn programming.
The functions themselves are not called.
For example, you do not call Main from anywhere, so this function is not executed.

_______________________________________________
added 1 minute later

Frost is also organized incorrectly. It will not work like this.

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.