04.02.2011, 13:28
(
Последний раз редактировалось BlackWolf120; 13.03.2011 в 16:19.
)
hi,
ive created a top score board that shows up after a round has ended.
Now theres one textdraw for every player.
It shows the name of the player, his amount of kills and deaths.
But theres one problem:
well, its a bit difficult to explain...
I want the numbers that show the kills and deaths of all the players to be exactly among each other.
Like this:
But with the texdraw ive created theres a problem as soon as the names of the players have a different length.
Like this:
And this looks just ugly![Sad](images/smilies/sad.gif)
So how can i prevent this little bug??
Id be happy about some tips.
regards....
ive created a top score board that shows up after a round has ended.
Now theres one textdraw for every player.
It shows the name of the player, his amount of kills and deaths.
But theres one problem:
well, its a bit difficult to explain...
I want the numbers that show the kills and deaths of all the players to be exactly among each other.
Like this:
pawn Код:
Player1 2Kills 3Deaths
Player2 2Kills 3Deaths
Player3 2Kills 3Deaths
Like this:
pawn Код:
Tom 2Kills 3Deaths
Mike Thomson 2Kills 3Deaths
Snake of Death 2Kills 3Deaths
![Sad](images/smilies/sad.gif)
So how can i prevent this little bug??
Id be happy about some tips.
pawn Код:
RoundEndStats1 = TextDrawCreate(3.000000, 156.000000, "1. --");
TextDrawBackgroundColor(RoundEndStats1, 255);
TextDrawFont(RoundEndStats1, 2);
TextDrawLetterSize(RoundEndStats1, 0.230000, 0.799999);
TextDrawColor(RoundEndStats1, -1);
TextDrawSetOutline(RoundEndStats1, 1);
TextDrawSetProportional(RoundEndStats1, 1);
TextDrawUseBox(RoundEndStats1, 1);
TextDrawBoxColor(RoundEndStats1, -926378346);
TextDrawTextSize(RoundEndStats1, 219.000000, -1.000000);
GetPlayerName(TotalPlayersEnd[0], string, sizeof(string));
format(string, sizeof(string), "~r~1. ~w~%s ~r~%d ~b~%d", name,kills[playerid],deaths[playerid]);//what should be changed/added here???
TextDrawShowForAll(RoundEndStats1);