Catalyst Gaming

Backup Sections => Suggestions => Orange Cosmos Roleplay 2[ARCHIVE] => Accepted Suggestions => Topic started by: ligglo on April 22, 2013, 07:01:23 PM

Title: Change to withdrawing from an ATM
Post by: ligglo on April 22, 2013, 07:01:23 PM
If you withdraw more money than your ATM holds, then you should withdraw all the money in it. Maybe code would help more. Something like:

if withdrawAmmount > balance then
   withdrawAmmount = balance
   end
Title: Re: Change to withdrawing from an ATM
Post by: Officialjake on April 22, 2013, 10:59:46 PM
If you withdraw more money than your ATM holds, then you should withdraw all the money in it. Maybe code would help more. Something like:

if withdrawAmmount > balance then
   withdrawAmmount = balance
   end

if withdrawAmmount >= balance then
   withdrawAmmount = balance
   end

More efficient code.  Then you dont have to code another if statement for if the withdrawAmmount is == balance

I just finished learning java so at first I was all like YOUR MISSING SEMI COLONS!!!! and then I was all like oh.... this is lua......
Title: Re: Change to withdrawing from an ATM
Post by: kronik on April 22, 2013, 11:08:02 PM
Add this with a hint when you've done it that says something like "You have withdrawn all of your money" and it's got my support.
Title: Re: Change to withdrawing from an ATM
Post by: Thource on April 23, 2013, 03:29:52 AM
Could use a math.Clamp(withdraw, 0, balance) but yes, this sounds like a good idea.

While we're still on the ATM topic, I struggle to see how it's possible to deposit into an ATM. Possibly we could have an NPC at the bank to do this?
Title: Re: Change to withdrawing from an ATM
Post by: wakeboarderCWB on April 23, 2013, 06:46:36 AM
Could use a math.Clamp(withdraw, 0, balance) but yes, this sounds like a good idea.

While we're still on the ATM topic, I struggle to see how it's possible to deposit into an ATM. Possibly we could have an NPC at the bank to do this?
All of the ATMs at my bank allow cash and check deposits.

But yes, this would be nice.
Title: Re: Change to withdrawing from an ATM
Post by: Crap-Head on May 16, 2013, 08:43:43 AM
Added this feature in update 10.

Accepted :)
SimplePortal 2.3.7 © 2008-2024, SimplePortal