gg.clearResults()
if gg.isVisible(true) then
gg.setVisible(false)
--[===[ is gg.isvisible and gg.setVisible supported in GG ?
end
::novalue::
gg.toast('Candy Crush Soda Lua Script By Ankit007')
data = gg.prompt({[1]='Enter Your Score'}, {[1]''})
if data == nil then
gg.toast ('Please enter a value')
goto novalue
end
gg.searchNumber(data[1], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
if gg.getResultCount() < 6 then
data = gg.editAll('2117483647', gg.TYPE_DWORD))
gg.toast (' Enjoy the game')
else
gg.toast( 'to many values found update the value and try again')
end
As i am new in lua scripting just started yesterday, and after understanding the lua first i started with Candy Crush Soda Score Increase Script
I want this script to hide the main gg and show only the script screen and
also 2 if conditions one to check that user should not enter the a null value and second that if to many values found then it should say that update the value
but to update and search again the user should close the script, i tried t add the sleep function but don't know much about it
Any thing required to be changed in the code ?
new 1.lua