Textdraw help
#9

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);
Reply


Messages In This Thread
Textdraw help - by MichaelWharton101 - 08.04.2013, 23:58
Re: Textdraw help - by MichaelWharton101 - 09.04.2013, 00:32
Re: Textdraw help - by LukisHard - 09.04.2013, 00:38
Re: Textdraw help - by MichaelWharton101 - 09.04.2013, 00:44
Re: Textdraw help - by LukisHard - 09.04.2013, 00:55
Re: Textdraw help - by MichaelWharton101 - 09.04.2013, 01:08
Re: Textdraw help - by MichaelWharton101 - 09.04.2013, 01:26
Re: Textdraw help - by Pawnie - 09.04.2013, 02:02
Re: Textdraw help - by Ballu Miaa - 09.04.2013, 02:07

Forum Jump:


Users browsing this thread: 3 Guest(s)