odiousgambit
odiousgambit
  • Threads: 327
  • Posts: 9729
Joined: Nov 9, 2009
July 29th, 2012 at 3:18:48 AM permalink


See the link to see this better.

This auto-bet file will not work correctly for me; it keeps going to around 40-50 come-out rolls, before the rolling stops. What am I doing wrong?

http://www.flickr.com/photos/9470342@N07/7667618722/in/photostream/lightbox/
the next time Dame Fortune toys with your heart, your soul and your wallet, raise your glass and praise her thus: “Thanks for nothing, you cold-hearted, evil, damnable, nefarious, low-life, malicious monster from Hell!”   She is, after all, stone deaf. ... Arnold Snyder
7craps
7craps
  • Threads: 18
  • Posts: 1977
Joined: Jan 23, 2010
July 29th, 2012 at 8:36:32 AM permalink
Common error.
First make sure on your Auto Play page the dice rolls are set to 0

Next, open up WinCraps help file and read about the differences of When and While
Steen added some very good examples to go by.

To be a good coder in WC, you must know the differences
They have different meanings (while = "as long as")
When has a dual meaning

You have this...

When . . .
Last roll was a come-out roll
then . . .
Add $ 1 to Chip-Stack # 1
When . . .
Chip-Stack # 1 is greater than $ 28
then . . .
Stop Auto-Rolling / Hyper-Drive


You should use this

While . . .
Last roll was a come-out roll
then . . .
Add $ 1 to Chip-Stack # 1
When . . .
Chip-Stack # 1 is greater than $ 28
then . . .
Stop Auto-Rolling / Hyper-Drive

One can also use the AutoBet/Options/Show Steps selection and it will walk thru each line of code.
Mistakes will be found there most times
winsome johnny (not Win some johnny)
odiousgambit
odiousgambit
  • Threads: 327
  • Posts: 9729
Joined: Nov 9, 2009
July 29th, 2012 at 9:28:10 AM permalink
Hey, thanks, that seems to have fixed it! I'll have to sort out my whens and whiles in the future.

Quote: 7craps

One can also use the AutoBet/Options/Show Steps selection and it will walk thru each line of code.
Mistakes will be found there most times



And thanks for this tip!
the next time Dame Fortune toys with your heart, your soul and your wallet, raise your glass and praise her thus: “Thanks for nothing, you cold-hearted, evil, damnable, nefarious, low-life, malicious monster from Hell!”   She is, after all, stone deaf. ... Arnold Snyder
  • Jump to: