Jump to content

getPlayerAccount problem


UAEpro

Recommended Posts

  • Moderators
Posted

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:

The rEvolution is coming ...

  • Moderators
Posted

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 ?

The rEvolution is coming ...

Posted (edited)

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

تيم سبيك بروجيمر

ts3server://ts.pg.sa

  • Moderators
Posted

You have to use getAccountName:

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

The rEvolution is coming ...

  • Moderators
Posted
Thaaanks ^^

Worked .. You are The one who made the script not me ^^

Thanks. No problem :oops:

The rEvolution is coming ...

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