UAEpro Posted March 2, 2011 Posted March 2, 2011 (edited) problem solved Thanks for Citizen Edited March 2, 2011 by Guest
Moderators Citizen Posted March 2, 2011 Moderators Posted March 2, 2011 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
UAEpro Posted March 2, 2011 Author Posted March 2, 2011 i tried this before but i got ERROR Attempt to concatenate Local 'LevelToGive' (a userdata value) in line outputDebugString("user.".. LevelToGive)
Moderators Citizen Posted March 2, 2011 Moderators Posted March 2, 2011 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 ?
UAEpro Posted March 2, 2011 Author Posted March 2, 2011 (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 March 2, 2011 by Guest
Moderators Citizen Posted March 2, 2011 Moderators Posted March 2, 2011 You have to use getAccountName: function Add (playerNick, level) local LevelToGive = getAccountName( getPlayerAccount( getPlayerFromName( playerNick )))
UAEpro Posted March 2, 2011 Author Posted March 2, 2011 Thaaanks ^^ Worked .. You are The one who made the script not me ^^
Moderators Citizen Posted March 2, 2011 Moderators Posted March 2, 2011 Thaaanks ^^Worked .. You are The one who made the script not me ^^ Thanks. No problem
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