[Ajuda] Horбrio real.
#6

Quando se faz uma alteraзгo na Textdraw vocк deve mostra-la novamente para atualizar o texto...
PHP код:
public OnGameModeInit()
{
    
SetTimer("AtualizarHora"1000true);
    return 
1;
}

forward AtualizarHora();
public 
AtualizarHora()
{
    new 
string[30];
    
gettime(HoraMinutoSegundo);
    
format(stringsizeof(string), "%02:%02"HoraMinuto);
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            
PlayerTextDrawSetString(iPlayerText:Horastring);
            
PlayerTextDrawShow(iPlayerTextHora);
        }
    }
    return 
1;

Obs: ja que й um relуgio recomendo usar TextDraw normal e nгo PlayerTextDraw.. nгo iria necessitar do loop.
Reply


Messages In This Thread
Horбrio real. - by Luiiiz - 01.03.2017, 21:35
Re: Horбrio real. - by RodrigoMSR - 01.03.2017, 21:38
Re: Horбrio real. - by Luiiiz - 02.03.2017, 00:00
Re: Horбrio real. - by Showzs - 02.03.2017, 00:09
Re: Horбrio real. - by Luiiiz - 02.03.2017, 00:36
Re: Horбrio real. - by Whoo - 02.03.2017, 00:49
Re: Horбrio real. - by Luiiiz - 02.03.2017, 00:54

Forum Jump:


Users browsing this thread: 2 Guest(s)