Textdraw for ScoreBoard !!problems!!
#1

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:

pawn Код:
Player1      2Kills 3Deaths
Player2      2Kills 3Deaths
Player3      2Kills 3Deaths
But with the texdraw ive created theres a problem as soon as the names of the players have a different length.
Like this:

pawn Код:
Tom      2Kills 3Deaths
Mike Thomson      2Kills 3Deaths
Snake of Death     2Kills 3Deaths
And this looks just ugly
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);
regards....
Reply


Messages In This Thread
Textdraw for ScoreBoard !!problems!! - by BlackWolf120 - 04.02.2011, 13:28
Re: Textdraw for ScoreBoard !!problems!! - by Krx17 - 04.02.2011, 13:37
Re: Textdraw for ScoreBoard !!problems!! - by BlackWolf120 - 04.02.2011, 13:46
Re: Textdraw for ScoreBoard !!problems!! - by Ricop522 - 04.02.2011, 14:22
Re: Textdraw for ScoreBoard !!problems!! - by BlackWolf120 - 04.02.2011, 14:24
Re: Textdraw for ScoreBoard !!problems!! - by BlackWolf120 - 01.03.2011, 10:27
Re: Textdraw for ScoreBoard !!problems!! - by Stigg - 01.03.2011, 12:36
Re: Textdraw for ScoreBoard !!problems!! - by BlackWolf120 - 01.03.2011, 12:44
Re: Textdraw for ScoreBoard !!problems!! - by BlackWolf120 - 01.03.2011, 13:00

Forum Jump:


Users browsing this thread: 6 Guest(s)