You are here: start » ppl » statements » account

ACCOUNT INTEGER field, INTEGER value

**This is an old revision of the document!**

ACCOUNT(INTEGER field)

ACCOUNT INTEGER field, INTEGER value

1) the ACCOUNT() function

Returns amount of credits charged for services corresponding to the field parameter.
Example:
println “You have been charged ”,ACCOUNT(DEBCHAT),“ for chat”
field is the field number to access (1-14) or using DEB
constants
See the Accounting section for a list of constants witch can be used with the ACCOUNT() function.
The account function is used to retrieve account information from PCBoard. These are the constants which can be used with the ACCOUNT() function.

2) The ACCOUNT Statement

field is a value between 0-14. Using system constants is reccomended. value is the amount of credits to add or subtract to field the field
Example:

	ACCOUNT DEB_CHAT,10

The ACCOUNT statement is used to modify accounting information for a user. This statement will simply modify a debit value whereas the RECORDUSAGE will do the same thing as well as record information in the accounting file.
The valid constants for this statement are the same as those used for the ACCOUNT() Function. See the Accounting section for a list of those consts
See also: Accounting RecordUsage

ppl/statements/account.1711554687.txt.gz · Last modified: 2024/03/27 16:51
CC Attribution 4.0 International Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution 4.0 International