AR/copyAccountData

From Multi Theft Auto: Wiki
Revision as of 04:55, 25 August 2012 by TAPL (talk | contribs)
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

This example copies the account data from the 'guest' to a registered account when they login

function copyDataOnLogin ( previousAccount, currentAccount, autoLogin)
  copyAccountData ( currentAccount, previousAccount )
end
addEventHandler ( "onPlayerLogin", getRootElement(), copyDataOnLogin )

See Also