Converting Milliseconds into Minutes and Seconds?
#7

ok, this is what my command looks like now.

PHP Code:
CMD:racerecorddebug(playeridparams[])
{
    new 
time;
    new 
rFile[256];
    new 
string[64];
    new 
string2[64];
    new 
string3[64];
    new 
string4[64];
    
time dini_Int(rFilestring2);
    new 
minutes time/60000;
    new 
seconds = (time%60000)/1000;
    new 
milliseconds = (time%1000);
    
format(rFilesizeof(rFile), "/rRaceSystem/%s.RRACE"RaceName);
    
format(stringsizeof(string), "BestRacer_0");
     
format(string2sizeof(string2), "BestRacerTime_0");
     
format(string3sizeof(string3), "Current Race Record held By: %s. "dini_Get(rFilestring));
     
format(string4sizeof(string4), "Their Time: %02d:%02d.%03d"dini_Get(rFilestring2), minutessecondsmilliseconds);
     
    
SendClientMessage(playeridGREENstring3);
    
SendClientMessage(playeridGREENstring4);
    return 
1;

this is an image from ingame when i view the race record



this is the string from the file that BestRacerTimer_0 refers to



i'm not quite sure where I have gone wrong
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)