ZH-CN/setAccountPassword: Difference between revisions
Jump to navigation
Jump to search
Qwe7769611 (talk | contribs) (Created page with "{{Server function}} __NOTOC__ This function is used to delete existing player accounts. ==Syntax== <syntaxhighlight lang="lua"> bool removeAccount ( account theAccount )...") |
Qwe7769611 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Server function}} | {{Server function}} | ||
__NOTOC__ | __NOTOC__ | ||
此函数用于删除现有玩家[[帐户]]. | |||
== | ==语法== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool removeAccount ( account theAccount ) | bool removeAccount ( account theAccount ) | ||
Line 9: | Line 9: | ||
{{OOP||[[account]]:remove||}} | {{OOP||[[account]]:remove||}} | ||
=== | ===必填参数=== | ||
*'''theAccount:''' | *'''theAccount:''' 您要删除的帐户 | ||
===Returns=== | ===Returns=== | ||
如果成功删除帐户,则返回“true”;如果帐户不存在,则返回“false” | |||
== | ==示例== | ||
This example does... | This example does... | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> |
Revision as of 08:25, 4 February 2021
此函数用于删除现有玩家帐户.
语法
bool removeAccount ( account theAccount )
OOP Syntax Help! I don't understand this!
- Method: account:remove(...)
必填参数
- theAccount: 您要删除的帐户
Returns
如果成功删除帐户,则返回“true”;如果帐户不存在,则返回“false”
示例
This example does...
function onCmdDeregister ( playerSource, commandName ) -- grab the account local sourceAccount = getPlayerAccount ( playerSource ) if sourceAccount then removeAccount ( sourceAccount ) outputChatBox ( "Account deregistered for " .. getPlayerName ( playerSource ) ) else outputChatBox ( "Unable to get your account, make sure you are logged in", playerSource ) end end addCommandHandler("deregister",onCmdDeregister)
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