[Ajuda] TextDraws Funзao
#1

Como Que Eu Posso Fazer , NO Lugar DO 00,00,00 Aparecer Os Cash q A Funзao й [pCasher]
PHP код:
    Rodape[4] = TextDrawCreate(21.000000424.000000"00,00,00");
    
TextDrawBackgroundColor(Rodape[4], 255);
    
TextDrawFont(Rodape[4], 1);
    
TextDrawLetterSize(Rodape[4], 0.3899991.000000);
    
TextDrawColor(Rodape[4], -1);
    
TextDrawSetOutline(Rodape[4], 0);
    
TextDrawSetProportional(Rodape[4], 1);
    
TextDrawSetShadow(Rodape[4], 1);
    
TextDrawSetSelectable(Rodape[4], 0); 
Reply
#2

Reply
#3

pawn Код:
new STR[100];
        //
        format(STR, 100, "%d",[pCasher]);
        TextDrawSetString(Rodape,STR);
Usa isso como base...
Reply
#4

nao consegui fazer nem umas das opзaoes me ajudem
Reply
#5

Qual й a variбvel completa do Cash ?
Reply
#6

PlayerInfo[playerid][pCasher] = 0;
Reply
#7

Quote:
Originally Posted by ModaLOKO
Посмотреть сообщение
pawn Код:
new STR[100];
        //
        format(STR, 100, "%d",[pCasher]);
        TextDrawSetString(Rodape,STR);
Usa isso como base...
PHP код:
        format(STR100"%d",PlayerInfo[playerid][pCasher]);
        
TextDrawSetString(Rodape,STR); 
Reply
#8

Moda mais aonde eu coloco Isso ? =3
Reply
#9

Coloca em OnGameModeInit
PHP код:
SetTimer("AtualizarCash"1000true); 
Final do GM
PHP код:
forward AtualizarCash();
public 
AtualizarCash()
{
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            new 
String[64];
            
format(Stringsizeof(String), "%d"PlayerInfo[playerid][pCasher]);
            
TextDrawSetString(Rodape[4], String);
        }
    }

Tem aqui um bom exemplo
Reply
#10

agora se vocк nгo souber montar ta dificil em amigo kkkk
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)