UAEpro Posted March 2, 2011 Share Posted March 2, 2011 (edited) problem solved Thanks for Citizen Edited March 2, 2011 by Guest Link to comment
Moderators Citizen Posted March 2, 2011 Moderators Share 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 Link to comment
UAEpro Posted March 2, 2011 Author Share 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) Link to comment
Moderators Citizen Posted March 2, 2011 Moderators Share 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 ? Link to comment
UAEpro Posted March 2, 2011 Author Share 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 Link to comment
Moderators Citizen Posted March 2, 2011 Moderators Share Posted March 2, 2011 You have to use getAccountName: function Add (playerNick, level) local LevelToGive = getAccountName( getPlayerAccount( getPlayerFromName( playerNick ))) Link to comment
UAEpro Posted March 2, 2011 Author Share Posted March 2, 2011 Thaaanks ^^ Worked .. You are The one who made the script not me ^^ Link to comment
Moderators Citizen Posted March 2, 2011 Moderators Share Posted March 2, 2011 Thaaanks ^^Worked .. You are The one who made the script not me ^^ Thanks. No problem 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