Textdraw6 = TextDrawCreate(28.000000, 169.000000, "1.Name Score : 0");
TextDrawBackgroundColor(Textdraw6, 255);
TextDrawFont(Textdraw6, 1);
TextDrawLetterSize(Textdraw6, 0.360000, 1.100000);
TextDrawColor(Textdraw6, -1);
TextDrawSetOutline(Textdraw6, 0);
TextDrawSetProportional(Textdraw6, 1);
TextDrawSetShadow(Textdraw6, 1);
Textdraw7 = TextDrawCreate(28.000000, 180.000000, "2.Name Score : 0");
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 1);
TextDrawLetterSize(Textdraw7, 0.350000, 1.100000);
TextDrawColor(Textdraw7, -1);
TextDrawSetOutline(Textdraw7, 0);
TextDrawSetProportional(Textdraw7, 1);
TextDrawSetShadow(Textdraw7, 1);
Textdraw8 = TextDrawCreate(28.000000, 191.000000, "3.Name Score : 0");
TextDrawBackgroundColor(Textdraw8, 255);
TextDrawFont(Textdraw8, 1);
TextDrawLetterSize(Textdraw8, 0.350000, 1.100000);
TextDrawColor(Textdraw8, -1);
TextDrawSetOutline(Textdraw8, 0);
TextDrawSetProportional(Textdraw8, 1);
TextDrawSetShadow(Textdraw8, 1);
Textdraw9 = TextDrawCreate(28.000000, 202.000000, "4.Name Score : 0");
TextDrawBackgroundColor(Textdraw9, 255);
TextDrawFont(Textdraw9, 1);
TextDrawLetterSize(Textdraw9, 0.350000, 1.100000);
TextDrawColor(Textdraw9, -1);
TextDrawSetOutline(Textdraw9, 0);
TextDrawSetProportional(Textdraw9, 1);
TextDrawSetShadow(Textdraw9, 1);
Textdraw10 = TextDrawCreate(28.000000, 213.000000, "5.Name Score : 0");
TextDrawBackgroundColor(Textdraw10, 255);
TextDrawFont(Textdraw10, 1);
TextDrawLetterSize(Textdraw10, 0.350000, 1.100000);
TextDrawColor(Textdraw10, -1);
TextDrawSetOutline(Textdraw10, 0);
TextDrawSetProportional(Textdraw10, 1);
TextDrawSetShadow(Textdraw10, 1);
Textdraw6 = TextDrawCreate(28.000000, 169.000000, "_");
new stuff[128];
format(stuff, sizeof(stuff), "~n~%d. %s Score: %d", i, name, score);
Well, first of all the advice Sasino gave you use advice I advice you not to use. (lol).
Why would you make a new textdraw for 5 ranks? Why not one textdraw? pawn Код:
pawn Код:
For the "i", use quicksort. Create the quicksort function or try to find one. Nevemrind, I found one for you. Quicksort function created by Ryder`. He even made a script for you to show the top5, what do you need more? http://forum.sa-mp.com/showpost.php?...2&postcount=44 Good luck. |