11.05.2014, 13:50
pawn Code:
public reloginho()
{
new
ano,
mes,
dia,
horas,
minutos,
segundos;
getdate(ano, mes, dia);
gettime(horas, minutos, segundos);
format(hstring, sizeof hstring, "%d/%s%d/2014", dia, ((mes < 10) ? ("0") : ("")), mes);
TextDrawSetString(Reloginho1, hstring);
format(hstring, sizeof hstring, "%s%d:%s%d:%s%d", (horas < 10) ? ("0") : (""), horas, (minutos < 10) ? ("0") : (""), minutos, (segundos < 10) ? ("0") : (""), segundos);
TextDrawSetString(Reloginho2, hstring);
}
pawn Code:
TextDrawShowForPlayer(playerid, Reloginho1);
TextDrawShowForPlayer(playerid, Reloginho2);