public OnPlayerConnect(playerid)
{
new tds[128];
format(tds, sizeof(tds), "Score:%d",GetPlayerScore(playerid));
Textdraw1[playerid] = TextDrawCreate(511.000000, 102.000000, tds);
TextDrawBackgroundColor(Textdraw1[playerid], 16711935);
TextDrawFont(Textdraw1[playerid], 1);
TextDrawLetterSize(Textdraw1[playerid], 0.529999, 2.000000);
TextDrawColor(Textdraw1[playerid], -1);
TextDrawSetOutline(Textdraw1[playerid], 1);
TextDrawSetProportional(Textdraw1[playerid], 1);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
new string[ 128 ];
Textdraw0[playerid] = TextDrawCreate(517.000000, 81.000000, "Rank:~r~");
TextDrawBackgroundColor(Textdraw0[playerid], 16711935);
TextDrawFont(Textdraw0[playerid], 1);
TextDrawLetterSize(Textdraw0[playerid], 0.524999, 2.000000);
TextDrawColor(Textdraw0[playerid], -1);
TextDrawSetOutline(Textdraw0[playerid], 1);
TextDrawSetProportional(Textdraw0[playerid], 1);
TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
return 1;
}
I think the problem is that you cant put stuff like ~r~ in textdraws you can only put them throu format.
format(string,sizeof(string),"Rank: %s", Player Rank variable HERE); Textdraw0[playerid] = TextDrawCreate( 517.00000, 81.00000, string); I hope this will work. + rep me if it did. |
I think the problem is that you cant put stuff like ~r~ in textdraws you can only put them throu format.
|