Difference between revisions of "Manual:DIL Manual/transfermoney()"
Jump to navigation
Jump to search
(XML import) |
(XML import) |
||
| Line 1: | Line 1: | ||
| + | <span id="bftranmon"></span> | ||
| + | integer transfermoney( f : unitptr, t : unitptr, amount : integer) | ||
| + | f : The char the money is taken from | ||
| + | t : The char the money is given to | ||
| + | amount : How much money. | ||
| + | Returns: TRUE is money was transferred, FALSE if could not afford. | ||
| + | If 'f' is null and 't' isn't, then money is created and given to 't'. | ||
| + | If 'f' isn't null but 't' is, then money is removed from 'f'. | ||
| + | ---~---~---~---~---~---~---~---~--- | ||
<span id="bftranmon"></span> | <span id="bftranmon"></span> | ||
integer transfermoney( f : unitptr, t : unitptr, amount : integer) | integer transfermoney( f : unitptr, t : unitptr, amount : integer) | ||
Latest revision as of 22:37, 4 December 2025
integer transfermoney( f : unitptr, t : unitptr, amount : integer) f : The char the money is taken from t : The char the money is given to amount : How much money. Returns: TRUE is money was transferred, FALSE if could not afford.
If 'f' is null and 't' isn't, then money is created and given to 't'. If 'f' isn't null but 't' is, then money is removed from 'f'.
---~---~---~---~---~---~---~---~---
integer transfermoney( f : unitptr, t : unitptr, amount : integer) f : The char the money is taken from t : The char the money is given to amount : How much money. Returns: TRUE is money was transferred, FALSE if could not afford.
If 'f' is null and 't' isn't, then money is created and given to 't'. If 'f' isn't null but 't' is, then money is removed from 'f'.
---~---~---~---~---~---~---~---~---