Editors Note: !.06 added the [Currency] arg.
| Functions Documentation | |
| Name | plyCharge |
| Syntax | (plyCharge player [currency] number) -> number |
| Argument List | player: The player. [Currency]: the UNID of the currency number: The number of credits to charge. |
| Returns | number: The number of credits left. |
| Category | economy, player, cash |
| Description | Charges the player the given number of credits and returns how much the player has left. |
| Example |
(plyCharge gplayer 1) Charges the player one credit and returns how many credits the player has left. |
| Comment | Basic credit manipulation function. The 1.06 thread http://neurohack.com/transcendence/forums/viewtopic.php?f=15&t=4292 says to use objCharge instead. |