27.09.2011, 02:55
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;
}