Set max players in lobby, localization and invalid using GetPlayerName()
(1). How to set max count of players in lobby? I have 2 team of 4 slots (8 players), but also can join somebody 9th and 10th. I change string in addoninfo.txt:
but problem still exists.
(2). Can I somehow know in Lua which language using player in Dota?
(3). My file addon_russian.txt works earlier, but in some moment something broken and from it takes only addon_name. His coding is UTF-16 LE with BOM, encoded with Sublime Text 3. What can be other causes?
(4). How to use GetPlayerName()? If i put on it integer value (e.g. 0 or 1), console print error:
attempt to call global 'GetPlayerName' (a nil value)
Ofc it happening if I put needed me caster:GetPlayerOwnerID() I try these writing:
but none of them is correct.