Post
Topic
Board Gambling
Re: Seuntjies DiceBot -Multi-Site, multi-strategy betting bot for dice. With Charts!
by
SM23031997
on 27/09/2020, 11:53:03 UTC
Hi,

Do anyone know how to start the script from beginning without using the start button. I have tried calling function within the function but it is not working.

Here is the snippet from my code.

Code:
chance  = math.random(**,**)
bethigh = true
basebet = 0.00000001
nextbet = basebet
dbet    = 0.00000002
chance1 = **
chance2 = **
w = 0

function dobet()
    bethigh = !bethigh

    if (win) then
        **
   
    elseif(lose) then
    resetstats()
    stop()
    start() --> [b]here I want it to start from beginning [/b]
   
else
**
    if(chance1 < 5 or chance2 > 95 ) then
**
    else
**
    end
   
end
end