Jump to content

I have a question !


Hero192

Recommended Posts

Posted

Hello dear scripters,

How can I get player name from account name.

Basically,

for example we have account: johan12 I want to get his nick name from his account name.

How can I do that ? because it's possible

Posted

you can either save the nickname with setAccountData or use SQL, if you want to get account name you can use getAccountName(acc)

Posted

If the player is online, you can do something like this:

getPlayerName(getAccountPlayer(getAccount("johan12"))) 

However, if they're not online, you will need to do something like what Tox said.

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...