AHSS Posted June 4, 2011 Share Posted June 4, 2011 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 Citizen Posted June 4, 2011 Moderators Share Posted June 4, 2011 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now