I added 2 more lvls but when a 9 streak lose it doesn recognise that i go to 4th sub-balance and keeps multiplying the last bet! Why is it doing this!
You have the "if currentstreak == -9" statement INSIDE the "if currentstreak == -3" block... so that code will never trigger, as it can't be -3 and -9 at the same time!
You should really learn to properly indent and align your code, so it is easier to see the code "blocks"... properly indented your code looks like this:
enablersc=true
enablezz=true
chance=6.15 --sets your chance for placing a bet
nextbet=0.00000001 --sets your first bet.
basebet=0.00000001 -- moved to only set once
currentbase = basebet -- save the current base bet
sub = 1 -- flag to indicate we are using 2nd sub-balance
function dobet()
if profit > 0.00000030 then
resetstats()
currentbase = basebet -- reset to base bet
sub = 1 -- made our profit, reset to 1st sub-balance
end
if win then
nextbet=currentbase -- reset to the current base
else
nextbet=previousbet*2.67
if currentstreak==-3 or currentstreak == -6 then
if sub == 1 then
sub = 2
nextbet=0.00000002
currentbase = nextbet -- save current base
else
sub = 3
--already betting 2nd sub-balance, move to 3rd sub-balance
nextbet = 0.00000003
currentbase = nextbet -- save current base end
if currentstreak==-9 or currentstreak == -12 then
if sub == 3 then
sub = 4
nextbet=0.00000004
currentbase = nextbet -- save current base
else
sub = 5
--already betting 2nd sub-balance, move to 3rd sub-balance
nextbet = 0.00000005
currentbase = nextbet -- save current base
end
end
end
end
end
It actually looks like you're missing an "end" statement?? I assume the app is interpreting some of your if blocks in an unexpected way. Anyway, by looking at properly indented code, you can see how your IF statements are nest incorrectly... and your if currentstreak==-9 is in the wrong place... I'm guessing it should probably be something like this:
enablersc=true
enablezz=true
chance=6.15 --sets your chance for placing a bet
nextbet=0.00000001 --sets your first bet.
basebet=0.00000001 -- moved to only set once
currentbase = basebet -- save the current base bet
sub = 1 -- flag to indicate we are using 2nd sub-balance
function dobet()
if profit > 0.00000030 then
resetstats()
currentbase = basebet -- reset to base bet
sub = 1 -- made our profit, reset to 1st sub-balance
end
if win then
nextbet=currentbase -- reset to the current base
else
nextbet=previousbet*2.67
if currentstreak==-3 or currentstreak == -6 then
if sub == 1 then
sub = 2
nextbet=0.00000002
currentbase = nextbet -- save current base
else
sub = 3
--already betting 2nd sub-balance, move to 3rd sub-balance
nextbet = 0.00000003
currentbase = nextbet -- save current base end
end
elseif currentstreak==-9 or currentstreak == -12 then
if sub == 3 then
sub = 4
nextbet=0.00000004
currentbase = nextbet -- save current base
else
sub = 5
--already betting 2nd sub-balance, move to 3rd sub-balance
nextbet = 0.00000005
currentbase = nextbet -- save current base
end
end
end
end