some questions
#8

Quote:
Originally Posted by Steven82
Посмотреть сообщение
Maybe make multiple textdraws. With the strings the colors you want.
could you explain further please, or give an example

pawn Код:
stock CreatePlayerInfo(playerid)
{
    // first text-draw.
    InfoTextDraw[playerid][0] = TextDrawCreate(511.000000,102.000000, "Information textdraw 1");
    TextDrawTextSize(InfoTextDraw[playerid][0], 850.0, 0.0);
    TextDrawAlignment(InfoTextDraw[playerid][0], 0);
    TextDrawBackgroundColor(InfoTextDraw[playerid][0], 0x000000ff);
    TextDrawFont(InfoTextDraw[playerid][0], 0);
    TextDrawLetterSize(InfoTextDraw[playerid][0], 0.399999,1.500000);
    TextDrawColor(InfoTextDraw[playerid][0], 0xffffffff);
    TextDrawSetShadow(InfoTextDraw[playerid][0], 1);
    TextDrawSetOutline(InfoTextDraw[playerid][0],1);
    TextDrawSetProportional(InfoTextDraw[playerid][0],1);
    // second text-draw.
    InfoTextDraw[playerid][1] = TextDrawCreate(511.000000,102.000000, "Information textdraw 2");
    TextDrawTextSize(InfoTextDraw[playerid][1], 850.0, 0.0);
    TextDrawAlignment(InfoTextDraw[playerid][1], 0);
    TextDrawBackgroundColor(InfoTextDraw[playerid][1], 0x000000ff);
    TextDrawFont(InfoTextDraw[playerid][1], 0);
    TextDrawLetterSize(InfoTextDraw[playerid][1], 0.399999,1.500000);
    TextDrawColor(InfoTextDraw[playerid][1], 0xffffffff);
    TextDrawSetShadow(InfoTextDraw[playerid][1], 1);
    TextDrawSetOutline(InfoTextDraw[playerid][1],1);
    TextDrawSetProportional(InfoTextDraw[playerid][1],1);
    isInfoTDCreated1[playerid] = true;
    return true;
}
i am currently doing that to create my textdraws

and this for the string

pawn Код:
format(textdrawString, 256,"~r~~h~%s - ~w~%d ~b~~h~%s - ~w~%d",TeamName[T_HOME],TeamRoundsWon[T_HOME],TeamName[T_AWAY],TeamRoundsWon[T_AWAY]);
but i want the TeamName[T_HOME] to be the team color and the same for away
Reply


Messages In This Thread
some questions - by the0 - 04.09.2011, 01:07
Re: some questions - by admantis - 04.09.2011, 01:44
Re: some questions - by the0 - 04.09.2011, 03:44
Re: some questions - by Kingunit - 04.09.2011, 03:50
Re: some questions - by Steven82 - 04.09.2011, 04:47
Re: some questions - by dowster - 04.09.2011, 05:08
Re: some questions - by the0 - 04.09.2011, 06:52
Re: some questions - by the0 - 04.09.2011, 23:39
Re: some questions - by Yamoo - 04.09.2011, 23:54
Re: some questions - by admantis - 05.09.2011, 00:19

Forum Jump:


Users browsing this thread: 2 Guest(s)