[AJUDA]Gettime
#4

pawn Код:
CMD:horas(playerid, params[])
{
    new Hora, Minuto, Segundo, string[45];
    gettime(Hora, Minuto, Segundo);
    format(string, sizeof(string), "Agora sгo %02d %s, %02d %s e %02d %s!", Hora, (Hora < 2)?("Hora"):("Horas"), Minuto, (Minuto < 2)?("Minuto"):("Minutos"), Segundo, (Segundo < 2)?("Segundo"):("Segundos"));
    SendClientMessage(playerid, Amarelo, string);
    return 1;
}
Se for 11:01, vai dizer 'Agora sгo 11 Horas, 01 Minuto e 05 Segundos', dependendo da hora nгo ficarб no plural!
Reply


Messages In This Thread
[AJUDA]Gettime - by [BND]Rodrigues - 04.05.2012, 06:55
Respuesta: [AJUDA]Gettime - by Schocc - 04.05.2012, 07:05
Re: [AJUDA]Gettime - by RoacH` - 04.05.2012, 10:03
Re: [AJUDA]Gettime - by paulor - 04.05.2012, 14:36
Re: [AJUDA]Gettime - by RoacH` - 04.05.2012, 14:41
Re: [AJUDA]Gettime - by CidadeNovaRP - 04.05.2012, 14:51
Re: [AJUDA]Gettime - by paulor - 04.05.2012, 14:59
Re: [AJUDA]Gettime - by RoacH` - 04.05.2012, 15:14
Re: [AJUDA]Gettime - by [BND]Rodrigues - 04.05.2012, 15:25
Re: [AJUDA]Gettime - by paulor - 04.05.2012, 16:05

Forum Jump:


Users browsing this thread: 1 Guest(s)