09.06.2011, 09:51
Hi guys,i've created some dynamic textdraw,no problems when compile,but i can't see that.
new Text:UKD;
OnGameModeInit:
OnPlayerConnect
I've defined all variables for UsaKills,i've only the problem that textdraw doesn't show ingame.
new Text:UKD;
OnGameModeInit:
pawn Код:
UKD = TextDrawCreate(496.000000, 225.000000, "Usa kills:");
TextDrawBackgroundColor(UKD, 255);
TextDrawFont(UKD, 1);
TextDrawLetterSize(UKD, 0.480000, 1.699999);
TextDrawColor(UKD, 65535);
TextDrawSetOutline(UKD, 0);
TextDrawSetProportional(UKD, 1);
TextDrawSetShadow(UKD, 1);
pawn Код:
new ukills[128];
format(ukills, sizeof(ukills), "Usa Kills: %s", UsaKills);
TextDrawSetString(UKD, ukills);
TextDrawShowForAll(UKD);