Jump to content

getPlayerAccount problem


UAEpro

Recommended Posts

  • Moderators

Hi,

In the getPlayerAccount, your are to specify the Player element so you have to getPlayerFromName( playerNick ) like this:

function Add (playerNick, level) 
    local LevelToGive = getPlayerAccount( getPlayerFromName( playerNick )) 

It should work now :wink:

Link to comment
  • Moderators

Yes because this function returns the player's account object, or false if the player passed to the function is invalid.

Then you can for example:

setAccountData ( LevelToGive ,... 

What you want to do with the account ?

Link to comment

i want to get player account name

so i can add him easily to an ACL group through lovely GUI

but when the Value of playerNick is (my nickname in the game) for example UAEpro and my account is UAEx

the value of LevelToGive must be when i enter my nickname, UAEx

Edited by Guest
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...