SA-MP Forums Archive
[AJUDA] Horario errado no TextDraw - 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] Horario errado no TextDraw (/showthread.php?tid=288680)



[AJUDA] Horario errado no TextDraw - CanTLoGin - 08.10.2011

agora й 14:30 ele aparece 10:05. T.T

pawn Код:
new H, M, S, D, MM, AA;
    gettime(H, M, S);
    getdate(AA, MM, D);
    format(str, 15, "%02d:%02d:%02d", H, M, S);
    TextDrawSetString(Horario, str);
    format(str, 15, "%02d/%02d/%04d", D, MM, AA);
    TextDrawSetString(Dia, str);
acho que й esse o codigo..


Re: [AJUDA] Horario errado no TextDraw - Vai_Besta - 08.10.2011

pawn Код:
new H, M, S, D, MM, AA;
    gettime(H, M, S);
    getdate(AA, MM, D);
    format(str, 15, "%02d:%02d:%02d", H+4, M+25, S);
    TextDrawSetString(Horario, str);
    format(str, 15, "%02d/%02d/%04d", D, MM, AA);
    TextDrawSetString(Dia, str);
tente kkk


Re: [AJUDA] Horario errado no TextDraw - CanTLoGin - 08.10.2011

lol. fun.
vlw Vai_Besta