[Ajuda] Atualizar Relogio.
#6

Quote:
Originally Posted by Dr_Pawno
Посмотреть сообщение
pawn Код:
forward Atualizar();
public OnGameModeInit()
{
    SetTimer("Atualizar", 1 * 1000, true); // 1 Segundo * 1000 milйsimos
    return 1;
}

public Atualizar()
{
    new texto1[64], year, month, day, hour, minute, second, texto2[64];
    getdate(year, month, day);
    gettime(hour, minute, second);
    format(texto1, sizeof texto1, "Dia: %02d/%02d/%04d", day, month, year);
    format(texto2, sizeof texto2, "Hora: %02d:%02d:%02d", hour, minute, second);
    SetTextDrawString(Textdraw2, texto1);
    SetTextDrawString(Textdraw3, texto2);
    return 1;
}
SetTextDrawString

Arrumei o codigo, mais nao deu.

@EDIT

Quote:
Originally Posted by Pharrel
Посмотреть сообщение
pawn Код:
//public OnGameModeInit()
SetTimer("reloginho", 1000, true);

forward reloginho();
public reloginho()
{
    new texto1[100], year, month, day, hour, minute, second, texto2[100];
    getdate(year, month, day);
    gettime(hour, minute, second);
    format(texto1, sizeof texto1, "%02d/%02d/%d", day, month, year);
    TextDrawSetString(Textdraw2, texto1);
    format(texto2, sizeof texto2, "%02d:%02d:%02d", hour, minute, second);
    TextDrawSetString(Textdraw3, texto2);
    return 1;
}
tenta assim

@edit Ninja detected ai em cima
O relogio nao atualizou ficou em 0:1:15
Reply


Messages In This Thread
[Ajuda] Atualizar Relogio. - by Lipe_Stronda - 27.09.2011, 02:44
Re: [Ajuda] Atualizar Relogio. - by Pharrel - 27.09.2011, 02:45
Re: [Ajuda] Atualizar Relogio. - by Lipe_Stronda - 27.09.2011, 02:53
Re: [Ajuda] Atualizar Relogio. - by Dr_Pawno - 27.09.2011, 02:55
Re: [Ajuda] Atualizar Relogio. - by Pharrel - 27.09.2011, 02:57
Re: [Ajuda] Atualizar Relogio. - by Lipe_Stronda - 27.09.2011, 02:58
Re: [Ajuda] Atualizar Relogio. - by Dr_Pawno - 27.09.2011, 02:59
Re: [Ajuda] Atualizar Relogio. - by Lipe_Stronda - 27.09.2011, 03:01
Re: [Ajuda] Atualizar Relogio. - by Dr_Pawno - 27.09.2011, 03:03
Re: [Ajuda] Atualizar Relogio. - by Lipe_Stronda - 27.09.2011, 03:04

Forum Jump:


Users browsing this thread: 1 Guest(s)