AR/removeAccount: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
			
		
		
	
|  (Created page with "{{Server function}} __NOTOC__ هذه الوظيفة لـ حذف حساب مسجل مسبقاً  ==Syntax==  <syntaxhighlight lang="lua"> bool removeAccount ( account theAccount ) </syntaxhighlight>   ===...") | 
| (No difference) | 
Revision as of 05:39, 25 August 2012
هذه الوظيفة لـ حذف حساب مسجل مسبقاً
Syntax
bool removeAccount ( account theAccount )
العناصر المطلوبة
- theAccount: الحساب الذي تريد حذفه
Returns
إذا كان الحساب غير موجود false ,إذا تم حذف الحساب بنجاح true يرجع
Example
/deregister هذا المثال يقوم بحذف حسابك عند أستخدام
function onCmdDeregister(player)
	-- get the account
	local playerAccount = getPlayerAccount(player)
	if playerAccount then
		removeAccount(playerAccount)
		outputChatBox("Account deregistered for "..getPlayerName(player))
	else 
		outputChatBox("Unable to get your account, make sure you are logged in", player)
	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