getAmount()
From Hack Wars Wiki
| Function information for getAmount() | |
| Function | getAmount() |
| API | Banking |
| Cost | $10 |
| Level | 1 |
| CPU Usage | 1 |
| Description | Returns a float representing the amount which has been requested to be transferred, withdrawn, or deposited. Malicious programs may sometimes ignore this value. |
Example
These are all examples that could be used a in a basic banking script...
Deposit:
float ip = getSourceIP(); float amount = getAmount(); lowerDeposit(ip, amount); |
Withdraw:
float ip = getSourceIP(); float amount = getAmount(); withdraw(ip, amount); |
Transfer:
float ip = getTargetIP(); float amount = getAmount(); lowerTransfer(ip, amount); |
