User getUserByResourceId

From Catglobe Wiki
Revision as of 06:10, 22 December 2011 by Cg huyphong (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



User_getUserByResourceId

Get a user object by its resource id

Syntax

User_getUserByResourceId(userResourceId)

Arguments

  • userResourceId: is a number expression, it is the user's resource id

Return value

An array, it is the user object which has the same format as what created by User_new function

Example

number resourceId = User_getUniqueIdFromUserId(8505316);

array user = User_getUserByResourceId(resourceId);

//Return user object array

Availability

Version 5.6