SA-MP Forums Archive
[Ajuda] Sobre o worldtime - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Sobre o worldtime (/showthread.php?tid=494552)



Sobre o worldtime - Firelink - 13.02.2014

Todos os FS de horas que coloco fica 3 horas a mais meu worldtime so fika em 22:00 alguem diz como configurar ? uso o sa-mp.gs uma host gratis.


Respuesta: Sobre o worldtime - [BWL]Chamaleon - 14.02.2014

pawn Код:
new string[256];
new hour,minute,second; // nomes definidos
new year, month,day; // nomes definidos
getdate(year, month, day); // coletando a data
gettime(hour,minute,second); // coletando Horas, Minutos & Segundos
format(string, sizeof(string), "%d/%d/%d ~R~%d:%d:%d",day,month,year,hour,minute,second); // format da TextDraw
TextDrawSetString(TextHora[i], string); // Funзгo que faz a TextDraw funcionar.
// Troque o TextHora[i] pela sua text de hora..

Atenciosamente,