Converting Milliseconds into Minutes and Seconds?
#6

pawn Code:
new minutes = time/60000;
new seconds = (time%60000)/1000;
new milliseconds = (time%1000);
new str[32];
format(str, sizeof(str), "Time: %02d:%02d.%03d", minutes, seconds, milliseconds);
SendClientMessage(playerid, -1, str);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)