[Ajuda] Data й hora
#10

Quote:
Originally Posted by [BOPE]Seu._.Madruga
Посмотреть сообщение
bom aqui nгo ficou mas tente fazer isto:

PHP код:
public OnPlayerConnect(playerid

    
TimerRelogio[playerid] = SetTimerEx("Relogio"1000true"d"playerid); 
    
TextDrawShowForPlayer(playeridTextdraw[3]);
    return 
1

PHP код:
public Relogio(playerid) {  
    new 
string[75], HoraMinutoSegundoDiaMesAno
    
gettime(HoraMinutoSegundo); 
    
getdate(AnoMesDia); 
    
format(stringsizeof(string), "~w~~h~Data: %02d/%02d/%d - %02d:%02d:%02d"DiaMesAnoHoraMinutoSegundo); 
    
TextDrawSetString(Textdraw[3], string);

Agora nem piscando tб olha como deixei o code pq tava dando erro

PHP код:
forward Relogio(playerid);
public 
Relogio(playerid)
{
    new 
string[75], Segundo;
    
format(stringsizeof(string), "~w~~h~Data: %02d/%02d/%d - %02d:%02d:%02d"DiaMesAnoHoraMinutoSegundo);
    
TextDrawSetString(Textdraw[3], string);

Reply


Messages In This Thread
Data й hora - by BrGabrielBr - 16.04.2018, 23:04
Re: Data й hora - by arakuta - 16.04.2018, 23:21
Re: Data й hora - by PilateGR - 16.04.2018, 23:21
Re: Data й hora - by [BOPE]Seu._.Madruga - 16.04.2018, 23:25
Re: Data й hora - by BrGabrielBr - 16.04.2018, 23:31
Re: Data й hora - by [BOPE]Seu._.Madruga - 16.04.2018, 23:35
Re: Data й hora - by BrGabrielBr - 16.04.2018, 23:40
Re: Data й hora - by BrGabrielBr - 16.04.2018, 23:43
Re: Data й hora - by [BOPE]Seu._.Madruga - 16.04.2018, 23:51
Re: Data й hora - by BrGabrielBr - 17.04.2018, 00:13

Forum Jump:


Users browsing this thread: 1 Guest(s)