AR/copyAccountData: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
No edit summary  | 
				|||
| Line 8: | Line 8: | ||
</syntaxhighlight>    | </syntaxhighlight>    | ||
===العناصر المطلوبة===  | |||
*'''theAccount:''' الحساب اللذي تريد نقل البيانات إليه  | |||
*'''fromAccount:''' الحساب اللذي تريد نسخ البيانات منه  | |||
===Returns===  | ===Returns===  | ||
Revision as of 11:58, 16 August 2013
هذه الوظيفة تنسخ جميع البيانات من حساب إلى آخر.
Syntax
bool copyAccountData ( account theAccount, account fromAccount )
العناصر المطلوبة
- theAccount: الحساب اللذي تريد نقل البيانات إليه
 - fromAccount: الحساب اللذي تريد نسخ البيانات منه
 
Returns
Returns a true if the accounts were valid, false otherwise.
Example
إلى الحساب الذي تم تسجيل الدخول إليه 'guest' هذا المثال عند تسجيل الدخول يقوم بنسخ بيانات حساب
function copyDataOnLogin(previousAccount, currentAccount)
   copyAccountData(currentAccount, previousAccount)
end
addEventHandler("onPlayerLogin", getRootElement(), copyDataOnLogin)