Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ppl:statements:account [2019/04/16 14:00] – created - external edit 127.0.0.1ppl:statements:account [2024/03/27 17:14] (current) stimpy
Line 1: Line 1:
-====== ACCOUNT(INTEGER field====== +====== ACCOUNT INTEGER field, INTEGER value ======
- ACCOUNT INTEGER field, INTEGER value+
   
 ===== 1) the ACCOUNT() function ===== ===== 1) the ACCOUNT() function =====
 +      ACCOUNT(INTEGER field)
 Returns amount of credits charged for services corresponding to the field parameter.   Returns amount of credits charged for services corresponding to the field parameter.  
  
 **Example:**   **Example:**  
- println "You have been charged ",ACCOUNT(DEB_CHAT)," for chat"   +      println "You have been charged ",ACCOUNT(DEB_CHAT)," for chat"   
-  + 
-field is the field number to access (1-14) or using DEB_ constants   +field is the field number to access (1-14) or using [[ppl:statements:constants|DEB_ constants]]   
-See the Accounting section for a list of constants witch can be used with the ACCOUNT() function.   +See the [[ppl:statements:accounting|Accounting section]] for a list of constants witch can be used with the [[ppl:statements:account|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.  +The account function is used to retrieve account information from PCBoard. These are the constants which can be used with the [[ppl:statements:account|ACCOUNT()]] function.  
  
 ===== 2) The ACCOUNT Statement   ===== ===== 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  +      ACCOUNT INTEGER field, INTEGER value 
 +`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:**   **Example:**  
 +      ACCOUNT DEB_CHAT,10
  
- ACCOUNT DEB_CHAT,10 +The [[ppl:statements:account|ACCOUNT]] statement is used to modify accounting information for a user. This statement will simply modify a debit value whereas the [[ppl:statements:recordusage|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 [[ppl:statements:account|ACCOUNT()]] Function. See the [[ppl:statements:accounting|Accounting section]] for a list of those consts     
-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  +--- 
 +**See also:** [[ppl:statements:accounting|Accounting]], [[ppl:statements:recordusage|RecordUsage]]