Fatahan Posted November 14, 2011 Share Posted November 14, 2011 function Acc( thePlayer ) name = getPlayerAccount( thePlayer ) outputChatBox( " акк - "..name , getRootElement(), 255, 255, 0 ) end addCommandHandler("acc", Acc) Что только не передавал в getPlayerAccount и как только не писал - не хочет работать...С функцией getPlayerName вроде работает. Объясните что я неправильно написал. Заранее спасибо Link to comment
Aibo Posted November 14, 2011 Share Posted November 14, 2011 getPlayerAccount возвращает класс account, а не строку: function Acc( thePlayer ) local name = getPlayerAccount( thePlayer ) outputChatBox( " акк - "..getAccountName(name), root, 255, 255, 0 ) end addCommandHandler("acc", Acc) Link to comment
Fatahan Posted November 14, 2011 Author Share Posted November 14, 2011 getPlayerAccount возвращает класс account, а не строку: function Acc( thePlayer ) local name = getPlayerAccount( thePlayer ) outputChatBox( " акк - "..getAccountName(name), root, 255, 255, 0 ) end addCommandHandler("acc", Acc) Спасиба 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