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