Jump to content

copyAccountData not working


AHSS

Recommended Posts

  
local accounts = {} 
local password = getAccountData(getPlayerAccount(src), 'password') 
accounts[src] = addAccount(newnick, password) 
copyAccountData(accounts[src], getAccount(getPlayerName(src))) 
removeAccount(getAccount(getPlayerName(src))) 
  

and its not working any one know why?

thanks in advance

Link to comment
  • Moderators

Maybe try this:

local accounts = {} 
local oldAccount = getPlayerAccount(src) 
local password = getAccountData(oldAccount, 'password') 
accounts[src] = addAccount(newnick, password) 
copyAccountData(accounts[src], oldAccount ) 
removeAccount(oldAccount) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...