[Ajuda] Textdraw string
#5

Quote:
Originally Posted by Username1234
Посмотреть сообщение
pawn Код:
for(new xhgj = 0; xhgj < MAX_PLAYERS; xhgj++)
    {
        StatusTextDrawxD[xhgj] = TextDrawCreate(383.000000, 2.000000, "");
        TextDrawAlignment(StatusTextDrawxD[xhgj], 2);
        TextDrawBackgroundColor(StatusTextDrawxD[xhgj], 255);
        TextDrawFont(StatusTextDrawxD[xhgj], 2);
        TextDrawLetterSize(StatusTextDrawxD[xhgj], 0.210000, 1.299999);
        TextDrawColor(StatusTextDrawxD[xhgj], -1);
        TextDrawSetOutline(StatusTextDrawxD[xhgj], 1);
        TextDrawSetProportional(StatusTextDrawxD[xhgj], 1);
        TextDrawSetSelectable(StatusTextDrawxD[xhgj], 0);
    }
Fala bobagem nao sff.

-

Cara para comecar voce esta a usar o tipo de textdraw errado tem de ser player textdraw.

depois na hora de formatar faz algo tipo isto:

PHP код:
forward UpdateTimer();
public 
UpdateTimer()
{
    new 
TDstring[128], ScoreMoneyPing;
    for(new 
xx<MAX_PLAYERSx++) // Loop for all players
    
{
        if(
IsPlayerConnected(x))
        {
            
Score GetPlayerScore(x);
            
Money GetPlayerMoney(x); 
            
Ping GetPlayerPing(x);
            
            
format(TDstringsizeof(TDstring), "SCORE %d, DINHEIRO %d, KILLS %d, DEATHS %d, FPS %d, PING %d"ScoreMoneyPlayerInfo[id][Kills], PlayerInfo[id][Deaths], Ping);
            
TextDrawSetString(Textdraw[x][0], TDstring);
        }    
    }
    return 
1;

Reply


Messages In This Thread
Textdraw string - by ZeZin - 04.03.2015, 01:12
Re: Textdraw string - by Username1234 - 04.03.2015, 01:15
Re: Textdraw string - by n0minal - 04.03.2015, 04:46
Re: Textdraw string - by ZeZin - 07.03.2015, 23:19
Re: Textdraw string - by PT - 08.03.2015, 01:28
Re: Textdraw string - by Username1234 - 08.03.2015, 14:40
Re: Textdraw string - by PT - 08.03.2015, 14:58
Re: Textdraw string - by n0minal - 08.03.2015, 15:20
Re: Textdraw string - by Username1234 - 08.03.2015, 15:37
Re: Textdraw string - by arakuta - 08.03.2015, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)