ShowSyncHudMsg to all players with languages
Hello.
I have plugin whitch allows voting for map length. Results are displayed as hud msg in format: [minutes count] [minutes string for players language] [(votes count)] 10 Minutes (1) 20 Minutes (3) 30 Minutes (0) this is my function uset for displaying results: Code:
public showTimeVoteResults() {Unfortunetly results are displayed incorrectly. The MINUTES word is displaying in different languages. It changes constantly from Minutes (en) to Minut (pl). How can I format this to display for each player in his own language? |
Re: ShowSyncHudMsg to all players with languages
You have to format and display individually for each player.
|
Re: ShowSyncHudMsg to all players with languages
No I did not. I waned to use one function for all. I saw this kind of work in many plugins, but I dont't know results in them.
If this is normal behaviour I will format message for each player and display separately. Will the message be formated this way than: Code:
public showTimeVoteResults(){Can I use one SyncHudObject for all players? |
Re: ShowSyncHudMsg to all players with languages
Quote:
You almost got it right, except for a few things: - That set task I show above needs to be outside the loop. - When formatting ML for player id, the format is: id, "KEY" (remove your LANG_PLAYER arg) You should be able to use the same SyncHudObject for all players. |
Re: ShowSyncHudMsg to all players with languages
set_task is outside loop
Thanks for help |
Re: ShowSyncHudMsg to all players with languages
Quote:
|
Re: ShowSyncHudMsg to all players with languages
I have changed formatting, but I have another question.
Is Code:
ShowSyncHudMsg(0, gHudCenteredMsg, "%L", LANG_PLAYER, "VOTING_FAILED_NEXT_IN_TEN"); |
Re: ShowSyncHudMsg to all players with languages
If you get those language issues, then do it separately.
|
| All times are GMT -4. The time now is 00:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.