27.03.2013, 20:38
I want a text to appear under the wanted stars as "Rank: General" (Or whatever rankname)
This is the Rank Name Variable:
This is the text draw.
This is the stock:
This is the Rank Name Variable:
pawn Код:
RankName(playerid)
This is the text draw.
pawn Код:
RankStars = TextDrawCreate(499.000000, 122.000000, "Rank: ");
TextDrawBackgroundColor(RankStars, 255);
TextDrawFont(RankStars, 2);
TextDrawLetterSize(RankStars, 0.480000, 1.100000);
TextDrawColor(RankStars, -1);
TextDrawSetOutline(RankStars, 1);
TextDrawSetProportional(RankStars, 1);
This is the stock:
pawn Код:
stock RankName(playerid)
{
new rank = Rank(playerid);
new rankname[24];
if(rank == 1) rankname = RANK1NAME;
if(rank == 2) rankname = RANK2NAME;
if(rank == 3) rankname = RANK3NAME;
if(rank == 4) rankname = RANK4NAME;
if(rank == 5) rankname = RANK5NAME;
if(rank == 6) rankname = RANK6NAME;
if(rank == 7) rankname = RANK7NAME;
if(rank == 8) rankname = RANK8NAME;
if(rank == 9) rankname = RANK9NAME;
return rankname;
}