Author Topic: Change to withdrawing from an ATM  (Read 1997 times)

Offline ligglo

  • Gold Member
  • *
  • Posts: 84
  • Awards [OCRP Award] Dedicated Player [OCRP Award] Evo City Marathon [OCRP Award] Secret Phrase [OCRP Award] Evo City Half Marathon
    • View Profile
    • Awards
Change to withdrawing from an ATM
« 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

Offline Officialjake

  • Gold Member
  • *
  • Posts: 455
  • Awards [OCRP Award] Evo City Marathon [OCRP Award] Secret Phrase [OCRP Award] Evo City Half Marathon [OCRP Award] Social Player
    • View Profile
    • Awards
Re: Change to withdrawing from an ATM
« Reply #1 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......
Half Life 2 RP Characters

-David Collins | Citizen Healthcare Provider | Alive
-Hanz Schnider | Citizen | Alive
-C45.MPF.NOVA-04.634 | Alive
-Dan Shepard | Citizen | Alive

Offline kronik

  • Gold Member
  • *
  • Posts: 1,450
  • Awards [OCRP Award] Lottery Winner [OCRP Award] Dedicated Player [OCRP Award] Millionaire [OCRP Award] Secret Phrase
    • View Profile
    • Awards
Re: Change to withdrawing from an ATM
« Reply #2 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.

Offline Thource

  • Thorse, the Brit
  • Gold Member
  • *
  • Posts: 57
  • Awards [OCRP Award] Dedicated Player [OCRP Award] Millionaire [OCRP Award] Evo City Marathon [OCRP Award] Secret Phrase
    • View Profile
    • Awards
Re: Change to withdrawing from an ATM
« Reply #3 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?

Offline wakeboarderCWB

  • Gold Member
  • *
  • Posts: 2,486
  • Awards [OCRP Award] Social Player [OCRP Award] You Own The Mall [OCRP Award] Dedicated Player [OCRP Award] Millionaire
    • View Profile
    • Awards
Re: Change to withdrawing from an ATM
« Reply #4 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.

Offline Crap-Head

  • #OCRP2
  • Gold Member
  • *
  • Posts: 4,029
  • Awards [OCRP Award] Millionaire [OCRP Award] Secret Phrase [OCRP Award] Comrades [OCRP Award] Junkie
    • View Profile
    • Awards
Re: Change to withdrawing from an ATM
« Reply #5 on: May 16, 2013, 08:43:43 AM »
Added this feature in update 10.

Accepted :)
Please do not add me on Steam because you have in-game problems. Make a thread in the correct board on the forum and i will respond to that whenever i have time.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal