Ok,
Here the result in miliseconds is:
975765760
The right time em minutes is:
1:16.09
But 975765760ms != 1:16.09
Im lost..
Part of my code:
Before patch X:
Help!!!
JS
                
            Here the result in miliseconds is:
975765760
The right time em minutes is:
1:16.09
But 975765760ms != 1:16.09
Im lost..
Part of my code:
<?php 
 function data($file)
    {
        $areas = array("Blackwood" => "BL", "South City" => "SO", "Fern Bay" => "FE", "Autocross" => "AU", "Aston" => "AS", "Kyoto Ring" => "KY", "Westhill" => "WE");
        $rp = fopen($file, "rb");
        if(fread($rp, 6) == "LFSMPR")
        {
            fread($rp, 14);
            $r["laps"] = hexdec(bin2hex(fread($rp, 1)));
            $r["skill"] = hexdec(bin2hex(fread($rp, 1)));
            $r["wind"] = hexdec(bin2hex(fread($rp, 1)));
            $r["started"] = hexdec(bin2hex(fread($rp, 1)));
            $r["version"] = trim(fread($rp, 8));
            $r["track"] = trim(fread($rp, 4));
                                
            $r["stime"] = hexdec(bin2hex(fread($rp, 4)));
            $area = trim(fread($rp, 32));
            $config = hexdec(bin2hex(fread($rp, 1)));
            $reversed = hexdec(bin2hex(fread($rp, 1)));
            $r["ilm"] = hexdec(bin2hex(fread($rp, 1)));
            $finished = hexdec(bin2hex(fread($rp, 1)));
            $r["finished"] = $finished;
            
            fread($rp, 4);
            $fastestlap=9999999;
             for($i = 0;$i < $finished; $i++)
                       //$i > $finished
            {
                $o[$i]["driver"] = trim(fread($rp, 24));//player name
                $o[$i]["plate"] = trim(fread($rp, 8));// plate
                $o[$i]["auto"] = trim(fread($rp, 4));//car name
                fread($rp, 24);
                $o[$i]["laps_c"] = hexdec(bin2hex(fread($rp, 2)))/256;//laps completed
                fread($rp, 2);
                $o[$i]["maha"] = fread($rp, 1);//confirm flags
                $o[$i]["pits"] = hexdec(bin2hex (fread($rp, 1). $pits[$i]));//n pits
                fread($rp, 1);
                fread($rp, 1);
                $o[$i]["ttime"] = hexdec(bin2hex(fread($rp, 4)));//total time
                $o[$i]["btime"] = hexdec(bin2hex(fread($rp, 4)));//best time
                fread($rp, 4);
            }
        }
    
        $r["res"] = $o;
        return $r;
    }
?>
<?php 
         $o[$i]["ttime"] = msht(fread($rp, 4));//total time
                $o[$i]["btime"] = msht(fread($rp, 4));//best time
?>
JS

