• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Ajuda] Formata??o de Cronometro
#1
Estou criando um sistema de pris?o do zero que j? esta tudo ok por?m eu queria deixar o tempo exibido na textdraw no estilo "00:00:00".. atualmente fica "0:0:0".. E como n?o tenho experi?ncia o suficiente fiquei travado nisso.. Poderiam me ajudar a formatar dessa forma? Desde j? agrade?o.
  Reply
#2
Code:
format(buffer, sizeof(buffer), "%02d:%02d:%02d", hour, minute, second);

Hope that this is what are you looking for as I understood nothing :D
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply
#3
(2020-12-02, 03:05 PM)Pinch Wrote:
Code:
format(buffer, sizeof(buffer), "%02d:%02d:%02d", hour, minute, second);

Hope that this is what are you looking for as I understood nothing :D



Thank you! That was exactly what I needed. I added reputation!
Desenvolvedor de?servidores?SA-MP Android.



"Trabalhe com o que ama e seja seu pr?prio funcion?rio."

H?, e use o Google como sua B?blia. ??

  Reply


Forum Jump: