API:CAccount
From STNE Wiki
(Difference between revisions)
Jacksfh (Talk | contribs)
(Created page with "{{apiMenu}} The CAccount class has only one static and two dynamic methods. Example: Var myAccount As CAccount; myAccount = CAccount.Current; WriteLine("The...")
(Created page with "{{apiMenu}} The CAccount class has only one static and two dynamic methods. Example: Var myAccount As CAccount; myAccount = CAccount.Current; WriteLine("The...")
Latest revision as of 08:38, 5 May 2020
Scripting Portal | Contents | API Reference | Index |
---|
The CAccount class has only one static and two dynamic methods.
Example:
Var myAccount As CAccount; myAccount = CAccount.Current; WriteLine("The current account has the ID: " & myAccount.UserID); WriteLine("The name of the player is: " & myAccount.User.Name);
Output:
The current account has the ID: 12345 The name of the player is: John Doe
Methods
Method | Description |
---|---|
Current | Returns the current account as a class |
User | Returns an object of class CUser |
UserID | Returns the current user ID |