18.08.2014, 09:10
I made these textdraws :-
And then i added Textdrawstrings -
Still, the textdraw shows 50, not the Kills.
Any help?
pawn Код:
Textdraw12 = TextDrawCreate(297.875000, 407.583374, "50");
TextDrawLetterSize(Textdraw12, 0.283124, 1.302500);
TextDrawAlignment(Textdraw12, 1);
TextDrawColor(Textdraw12, -1);
TextDrawSetShadow(Textdraw12, 0);
TextDrawSetOutline(Textdraw12, 1);
TextDrawBackgroundColor(Textdraw12, 51);
TextDrawFont(Textdraw12, 1);
TextDrawSetProportional(Textdraw12, 1);
Textdraw13 = TextDrawCreate(410.125000, 408.000152, "50");
TextDrawLetterSize(Textdraw13, 0.283124, 1.302500);
TextDrawAlignment(Textdraw13, 1);
TextDrawColor(Textdraw13, -1);
TextDrawSetShadow(Textdraw13, 0);
TextDrawSetOutline(Textdraw13, 1);
TextDrawBackgroundColor(Textdraw13, 51);
TextDrawFont(Textdraw13, 1);
TextDrawSetProportional(Textdraw13, 1);
pawn Код:
forward MapKill1();
public MapKill1()
{
new string[16];
format(string, sizeof string, "%d", MapKillsSoldiers);
TextDrawSetString(Textdraw12, string);
return 1;
}
forward MapKill2();
public MapKill2()
{
new string[16];
format(string, sizeof string, "%d", MapKillsTerrorists);
TextDrawSetString(Textdraw13, string);
return 1;
}
Any help?