Jump to content
ExtremeBoy

Help me with the problem

Recommended Posts

I make a script,but the script error when i input 122 , its go to gg.alert

Quote

function Coins()
local dmd = gg.prompt({[1]='You Must Input Your Diamonds Value\nYour Diamonds:'},nil,{[1]='number'})
gg.toast('Loading...')
gg.sleep(400)
local koin = gg.prompt({[1]='You Need Coins At Least 40\nYour Coins Now:'},nil,{[1]='number'})
if koin[1] < ('39') then 
gg.alert('You Need Coins At Lsast 40!') 
Main()
else
gg.searchNumber(dmd[1]..';'..koin[1],gg.TYPE_FLOAT)
gg.searchNumber(koin[1],gg.TYPE_FLOAT)
gg.getResults(200)
gg.editAll('999999999',gg.TYPE_FLOAT)
gg.alert('Done✅')
Main()
end
end

 

Share this post


Link to post
Share on other sites

Learn about difference string and number in Lua comparsion. You compare string, as char by char. But need compare as numbers.

Use google for find answer.

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...