Jump to content
  • 0

Help me with the problem


ExtremeBoy

Question

Posted

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

 

1 answer to this question

Recommended Posts

  • Administrators
Posted

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.

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.