24.12.2014, 03:49
ok, this is what my command looks like now.
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
PHP Code:
CMD:racerecorddebug(playerid, params[])
{
new time;
new rFile[256];
new string[64];
new string2[64];
new string3[64];
new string4[64];
time = dini_Int(rFile, string2);
new minutes = time/60000;
new seconds = (time%60000)/1000;
new milliseconds = (time%1000);
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: %02d:%02d.%03d", dini_Get(rFile, string2), minutes, seconds, milliseconds);
SendClientMessage(playerid, GREEN, string3);
SendClientMessage(playerid, GREEN, string4);
return 1;
}
this is the string from the file that BestRacerTimer_0 refers to
i'm not quite sure where I have gone wrong