at the end i changed it from
if win then
nextbet=baseBet
else
nextbet=baseBet
end
end
TO
end
nextbet=baseBet
end
THATS WHY IT STARTED WORKING BUT STILL NOT FOLOWING THEPROCESS IT SHOULD FOLLOW
my script as started working but its not performing some actions
1- it dosnt +the previous bet with the basebet
2- if the current streak is 10 it still wont change the bet to the nextbet it just continue to bet with the basebet on and on
wagered=wagered+previousbet
chance=28.08
chance1=90.4 --I hope this are the varies and value u asked me to set b4 dobet function
chance2=94 --I hope this are the varies and value u asked me to set b4 dobet function
chance3=95 --I hope this are the varies and value u asked me to set b4 dobet function
bethigh=false
baseBet=0.00000001 -- should the baseBet be up here?
baseBet1=0.00000020 --I hope this are the varies and value u asked me to set b4 dobet function
baseBet2=0.00000030 --I hope this are the varies and value u asked me to set b4 dobet function
baseBet3=0.00000050 --I hope this are the varies and value u asked me to set b4 dobet function
profitterget=0.00100000
nextbet=baseBet
function dobet()
chance = 28.08
baseBet=0.00000001
end
if win then
nextbet=baseBet
else
nextbet=previousbet+baseBet -- it dse not perform this action
end
if currentstreak==-10 then -- it dosnt perform this action too and any of the action below also.. but its just betting on with the base bet
chance = chance1
betlow = false
nextbet=baseBet1
end
if win then
nextbet=baseBet
else
chance = chance2
bethigh = true
nextbet=baseBet2
end
if win then
nextbet=baseBet
else
chance = chance3
bethigh = false
nextbet=baseBet3
end
nextbet=baseBet
end
if (balance) >= profittarget then
stop();
print(balance)
print("TARGET ACHIEVED!!!")
end
end
pls what should i do
it does.
chance = 28.08
baseBet=0.00000001
end
end is the end of the function, nothing after that matters. It can get tricky because you have to also end an if/else group.
Here is your code with better formatting so you can spot error's easier.
wagered=wagered+previousbet <--- There is no previous bet at this point. This doesn't do anything.
chance=28.08
chance1=90.4
chance2=94
chance3=95
bethigh=false
baseBet=0.00000001
baseBet1=0.00000020
baseBet2=0.00000030
baseBet3=0.00000050
profitterget=0.00100000 < This is misspelled...
nextbet=baseBet
function dobet()
chance = 28.08
baseBet=0.00000001
end < This ends the function dobet() Nothing after this matters.... IE Get rid of this.......
if win then
nextbet=baseBet
else
nextbet=previousbet+baseBet -- it dse not perform this action
end
if currentstreak==-10 then -- it dosnt perform this action too and any of the action below also.. but its just betting on with the base bet
chance = chance1
betlow = false -- betlow is not a valid name.
nextbet=baseBet1
end
if win then
nextbet=baseBet
else
chance = chance2
bethigh = true
nextbet=baseBet2
end
if win then -- No matter what you did above this is the only block that will matter.
nextbet=baseBet
else
chance = chance3
bethigh = false
nextbet=baseBet3
end
nextbet=baseBet -- and now your just setting nextbet to always be equal to basebet
end -- Again not sure what this is for
if (balance) >= profittarget then
stop();
print(balance)
print("TARGET ACHIEVED!!!")
end
end --This should be at the end of the
You can have nested if statement.
if win then
else
nextbet = previousbet * 2
if currentstreak == -10 then
do your 10 lose stuff
end
if currentstreak == -11 then
11 lose
end
if currentstreak == -12 then
12 lose
end
if currentstreak < -12 then
reset everything
nextbet = basebet
chance = default
bethigh = whatever you want it to be.
end
end
Then you could add the profit stuff. But I would make sure the main code is working before adding stuff. It makes it easier to catch any errors.
bro hv done everything but still doing the same
If the code is at least running. Start adding print statements to fix your logic.
Like
print("Dobet entered")
and later in the win path
print("roll won")
print(nextbet) to show you set nextbet.
You can print text in quotes or the values of variables. And .. concatenates the output.
so
print("Nextbet = "..nextbet) should print Nextbet = 0.00000001
The pseudo-code example I gave at the end of my last update is the script your asking for without the values filled in. Look that over carefully and try to understand what it's doing.
Also the programming language used is called LUA. You can search for LUA tutorials.