AR/copyAccountData

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

هذه الوظيفة تنسخ جميع البيانات من حساب إلى آخر.

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)

انظر ايضاً