# Issues with a flash money system, Adding like '7525' where it should be '100'

**URL:** <https://forum.kirupa.com/t/issues-with-a-flash-money-system-adding-like-7525-where-it-should-be-100/247056>\
**Category:** Uncategorized\
**Created:** [December 18, 2007, 3:06am UTC](https://forum.kirupa.com/t/issues-with-a-flash-money-system-adding-like-7525-where-it-should-be-100/247056 "2007-12-18T03:06:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zach93111](https://avatars.discourse-cdn.com/v4/letter/z/e0b2c6/32.png) [@zach93111](https://forum.kirupa.com/u/zach93111)\
**Post date:** [December 18, 2007, 3:06am UTC](https://forum.kirupa.com/t/issues-with-a-flash-money-system-adding-like-7525-where-it-should-be-100/247056/1 "2007-12-18T03:06:21Z")

</div>

I’m sure this is some dumb mistake I made, but… what is causing this is just… hidden…

```auto
  sum = 0; money = 250; pot = 0; minumum = 25; betCash = 0; card1 = 0; card2 = 0; card3 = 0; card4 = 0; card5 = 0; allowDeal = true; round1 = true; round2 = false; allowNext = false; madeBet = true; message1 = 'Start by clicking "deal"!'; onEnterFrame = function () { if (money=0) { trace(pot) pot += betCash; money -= betCash; madeBet = true; } else { money = 0; message1 = 'cannot bet, you have no cash!'; } }; _root.next1.onRelease = _root.next1.onReleaseOutside=function () { if (allowNext == true) { round1 = false; round2 = true; if (madeBet == false) { money -= minumum; pot += minumum; } } }; }; } };  

```
