ES/copyAccountData: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
|  (Created page with "__NOTOC__  {{Server function}} Esta función copia toda la información de una cuenta en otra.  ==Sintaxis==  <syntaxhighlight lang="lua"> bool copyAccountData ( account laCuentaCopiada, accoun...") | No edit summary | ||
| Line 18: | Line 18: | ||
| This example copies the account data from the 'guest' to a registered account when they login | This example copies the account data from the 'guest' to a registered account when they login | ||
| <syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
| function copyDataOnLogin ( previousAccount, currentAccount | function copyDataOnLogin ( previousAccount, currentAccount ) | ||
|    copyAccountData ( currentAccount, previousAccount ) |    copyAccountData ( currentAccount, previousAccount ) | ||
| end | end | ||
Latest revision as of 20:59, 30 August 2016
Esta función copia toda la información de una cuenta en otra.
Sintaxis
bool copyAccountData ( account laCuentaCopiada, account laCuentaDestino )
Argumentos Requeridos
- laCuentaCopiada: La cuenta de la cual quieres copiar la información.
- laCuentaDestino: La cuenta cuenta que va a recibir la información copiada.
Devuelve
Devuelve true si las cuentas son validas, de lo contrario devuelve false.
Ejemplos
This example copies the account data from the 'guest' to a registered account when they login
function copyDataOnLogin ( previousAccount, currentAccount ) copyAccountData ( currentAccount, previousAccount ) end addEventHandler ( "onPlayerLogin", getRootElement(), copyDataOnLogin )