Catalyst Gaming
Backup Sections => Suggestions => Orange Cosmos Roleplay 2[ARCHIVE] => Accepted Suggestions => Topic started 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
-
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......
-
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.
-
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?
-
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.
-
Added this feature in update 10.
Accepted :)