09.04.2013, 02:07
Use this. You need to format a string to show variables in a string inside a Textdraw or SendClientMessage.
pawn Код:
// Game time
new str[40];
format(str,sizeof(str),"~r~Game time: ~w~%d:%d:%d", thour, tmin, tsec);
TimeTD = TextDrawCreate(36.000000, 430.000000,str);
TextDrawBackgroundColor(TimeTD, 255);
TextDrawFont(TimeTD,2);
TextDrawSetShadow(TimeTD,0);
TextDrawSetOutline(TimeTD,1);
TextDrawAlignment(TimeTD,1);
TextDrawLetterSize(TimeTD,0.200000,1.000000);
TextDrawColor(TimeTD,COLOR_WHITE);
TextDrawSetOutline(TimeTD, 1);