ZH-CN/setAccountPassword: Difference between revisions
Jump to navigation
Jump to search
Qwe7769611 (talk | contribs) No edit summary |
m (Добавление языков) |
||
(One intermediate revision by one other user not shown) | |||
Line 12: | Line 12: | ||
*'''theAccount:''' 您要删除的帐户 | *'''theAccount:''' 您要删除的帐户 | ||
=== | ===返回值=== | ||
如果成功删除帐户,则返回“true”;如果帐户不存在,则返回“false” | 如果成功删除帐户,则返回“true”;如果帐户不存在,则返回“false” | ||
==示例== | ==示例== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function onCmdDeregister ( playerSource, commandName ) | function onCmdDeregister ( playerSource, commandName ) | ||
Line 36: | Line 35: | ||
{{Account_functions}} | {{Account_functions}} | ||
[[en:setAccountPassword]] | |||
[[ru:setAccountPassword]] | |||
[[ar:setAccountPassword]] | [[ar:setAccountPassword]] | ||
[[es:setAccountPassword]] | |||
[[zh-cn:setAccountPassword]] | [[zh-cn:setAccountPassword]] |
Latest revision as of 15:49, 12 April 2021
此函数用于删除现有玩家帐户.
语法
bool removeAccount ( account theAccount )
OOP 语法 什么是OOP?
- 方法: account:remove(...)
必填参数
- theAccount: 您要删除的帐户
返回值
如果成功删除帐户,则返回“true”;如果帐户不存在,则返回“false”
示例
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