[Ajuda] Data й hora
#3

Testa ai!
Код:
public Relogio(playerid)
{
    format(Clock, 35, "~w~~h~Data: %02d/%02d/%d - %02d:%02d:%02d", ClockTime[dDay], ((ClockTime[dMonth] < 10) ? ("0") : ("")), ClockTime[dMonth], RELOGIO_ANO, (ClockTime[tHour] < 10) ? ("0") : (""), ClockTime[tHour], (ClockTime[tMinute] < 10) ? ("0") : (""), ClockTime[tMinute], (ClockTime[tSecond] < 10) ? ("0") : (""), ClockTime[tSecond]);
    TextDrawSetString(Textdraw[3], Clock);
    return true;
}
Fiz desta maneira tambйm, que da quase no mesmo do seu objetivo...
Код:
public Relogio(playerid)
{
    new
	Dia,
	Mes,
	Ano,
	Hora,
	Minutos,
	Segundos
    ;

    getdate(Dia, Mes, Ano), gettime(Hora, Minutos, Segundos);
    format(Clock, 35, "~w~~h~Data: %02d/%02d/%d - %02d:%02d:%02d", Dia, Mes, Ano, Hora, Minutos, Segundos);
    TextDrawSetString(Textdraw[3], Clock);
    return true;
}
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: 2 Guest(s)