15.12.2013, 08:36
Hello I have one little problem I want to convert seconds to minutes, minutes to hours and I have code:
I have did sekonds on myself 8000 but the server print: Liko sedet: 0val 1min 8000sec. What I did bad with this?
Код HTML:
JAILLAIKAS[ playerid ] --;
new str[70];
new hours, minutes, seconds = JAILLAIKAS[playerid];
if(seconds >= 60)
{
minutes ++;
seconds-=60;
}
if(minutes >= 60)
{
hours++;
minutes -=60;
}
format(str, 70, "~n~~n~~n~~n~~n~~n~~w~Liko sedet:~r~%d val %d min %d sec",valandos,minutes, sekundes);
GameTextForPlayer(playerid, str, 1000, 5);


