GetAmount()

From ElectronicWar

Jump to: navigation, search
Function information for getAmount()
Function getAmount()
Parameters None
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.


[edit] 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);
Personal tools