24.12.2014, 01:26
hey guys, i have a command for the racing system that i use that allows me to view the current record of the active race.
it works perfectly well, it tells me the players name and also their time, but the thing is, their time is displayed in milliseconds and it just looks ugly saying "Their Time: 87111".
I was wondering how I could possibly convert that to say "Their Time: 1:37.111" instead.
here is my entire command
it works perfectly well, it tells me the players name and also their time, but the thing is, their time is displayed in milliseconds and it just looks ugly saying "Their Time: 87111".
I was wondering how I could possibly convert that to say "Their Time: 1:37.111" instead.
here is my entire command
PHP Code:
CMD:racerecorddebug(playerid, params[])
{
new rFile[256];
new string[64];
new string2[64];
new string3[64];
new string4[64];
format(rFile, sizeof(rFile), "/rRaceSystem/%s.RRACE", RaceName);
format(string, sizeof(string), "BestRacer_0");
format(string2, sizeof(string2), "BestRacerTime_0");
format(string3, sizeof(string3), "Current Race Record held By: %s. ", dini_Get(rFile, string));
format(string4, sizeof(string4), "Their Time: %s", dini_Get(rFile, string2));
SendClientMessage(playerid, GREEN, string3);
SendClientMessage(playerid, GREEN, string4);
return 1;
}