Difference between revisions of "User withdrawPoints"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
 
[[Category:User_Functions]]
 
[[Category:User_Functions]]

+
{{HelpFiles}}
  
 
====User_withdrawPoints====
 
====User_withdrawPoints====

Revision as of 08:03, 14 December 2011



User_withdrawPoints

Withdraw a number of points from a user

Syntax

User_withdrawPoints(points, description, userResourceId)

Arguments

  • points: is a number expression. It is the number of points to withdraw
  • description: is a string expression. It is the transaction's description
  • userResourceId: is a number expression. It is the user's resource id

Return value

A number, if the process succeeds, return 0, return the number of points otherwise

Example

number p = User_withdrawPoints(120, "Withdraw", 456546);

Availability

Version 5.6