GetAccountSerial: Difference between revisions
Jump to navigation
Jump to search
Qwe7769611 (talk | contribs) No edit summary |
m (Edited language change) |
||
(One intermediate revision by the same user not shown) | |||
Line 38: | Line 38: | ||
[[ru:getAccountSerial]] | [[ru:getAccountSerial]] | ||
[[zh-cn:getAccountSerial]] | [[zh-cn:getAccountSerial]] |
Latest revision as of 15:23, 8 June 2022
This function returns the last serial that logged onto the specified account.
Syntax
string getAccountSerial ( account theAccount )
OOP Syntax Help! I don't understand this!
- Method: account:getSerial(...)
- Variable: .serial
Required Arguments
- theAccount: The account to get serial from
Returns
Returns string containing the serial, the string is empty if the account was never used. Returns false if invalid arguments were specified.
Example
This example adds command getaccserial that outputs the given account's serial in the chat box.
addCommandHandler("getaccserial", function (player, cmd, accountName) if accountName then local account = getAccount(accountName) if (account) then outputChatBox("Serial: " .. getAccountSerial(account)) else outputChatBox("Account not found") end end end )
See Also
- addAccount
- copyAccountData
- getAccount
- getAccountData
- getAccountName
- getAccountPlayer
- getAccountSerial
- getAccounts
- getAccountsBySerial
- getAllAccountData
- getPlayerAccount
- isGuestAccount
- logIn
- logOut
- removeAccount
- setAccountData
- setAccountPassword
- getAccountByID
- getAccountID
- getAccountIP
- getAccountsByData
- getAccountsByIP
- setAccountName