[FONT=FIXED SYS]NF result 80 RESULT INFO : (see below)
RESULT INFO : size 80 bytes per finished player
24 char 0 player name : text, ends 0, no colours
8 char 24 number plate : text, NOTE : NO ZERO AT END
4 char 32 short car name : text, ends 0
24 byte 36 0 : -
1 word 60 laps done : total laps completed
1 word 62 player flags : driver settings (see NOTES)
1 byte 64 confirm flags : penalties (see NOTES)
1 byte 65 number of stops : pit stops count
1 byte 66 0 : -
1 byte 67 0 : -
1 time 68 overall time : msht time
1 time 72 best lap time : msht time (first check point)
1 int 76 0 : -[/FONT]
<?php
for($i = 0; $i < $finished; $i++)
{
$o[$i]["soitja"] = trim(fread($rp, 24));
$o[$i]["plate"] = trim(fread($rp, 8));
$o[$i]["auto"] = trim(fread($rp, 4));
fread($rp, 24);
$o[$i]["laps_c"] = hexdec(bin2hex(fread($rp, 2)))/256;
fread($rp, 2);
fread($rp, 1);
$o[$i]["pits"] = hexdec(bin2hex (fread($rp, 1). $pits[$i]));
fread($rp, 1);
fread($rp, 1);
//$o[$i]["maha"] = hexdec(bin2hex(fread($rp, 1)));
$o[$i]["lopp"] = msht2int(fread($rp, 4));
$o[$i]["parim"] = msht2int(fread($rp, 4));
fread($rp, 4);
}
?>
<?php
for($i = 0; $i < $finished; $i++)
{
$o[$i]["player_name"] = trim(fread($rp, 24));
$o[$i]["plate"] = trim(fread($rp, 8));
$o[$i]["car"] = trim(fread($rp, 32));
//$o[$i]["laps_c"] = hexdec(bin2hex(fread($rp, 1)));
fread($rp, 1);
$o[$i]["pits"] = hexdec(bin2hex (fread($rp, 1). $pits[$i]));
fread($rp, 1);
$o[$i]["?????"] = hexdec(bin2hex(fread($rp, 1)));
$o[$i]["overall_time"] = msht2int(fread($rp, 4));
$o[$i]["best_lap"] = msht2int(fread($rp, 4));
fread($rp, 4);
}
?>
[FONT=FIXED SYS]RESULT INFO : size 80 bytes per finished player
24 char 0 player name : text, ends 0, no colours
8 char 24 number plate : text, NOTE : NO ZERO AT END
4 char 32 short car name : text, ends 0
24 byte 36 0 : -
1 word 60 laps done : total laps completed
1 word 62 player flags : driver settings (see NOTES)
1 byte 64 confirm flags : penalties (see NOTES)
1 byte 65 number of stops : pit stops count
1 byte 66 0 : -
1 byte 67 0 : -
1 time 68 overall time : msht time
1 time 72 best lap time : msht time (first check point)
1 int 76 0 : -[/FONT]
<?php
if(fread($rp, 6) == "LFSMPR")
{
fread($rp, 14);
$r["ringe"] = hexdec(bin2hex(fread($rp, 1)));
$r["skill"] = hexdec(bin2hex(fread($rp, 1)));
$r["tuul"] = hexdec(bin2hex(fread($rp, 1)));
$r["wind"] = hexdec(bin2hex(fread($rp, 1)));
$r["version"] = trim(fread($rp, 8));
fread($rp, 8);
$area = trim(fread($rp, 32));
$config = hexdec(bin2hex(fread($rp, 1)));
$reversed = hexdec(bin2hex(fread($rp, 1)));
$r["ilm"] = hexdec(bin2hex(fread($rp, 1)));
$r["rada"] = $areas[$area].$config.($reversed ? "r" : "");
$finished = hexdec(bin2hex(fread($rp, 1)));
fread($rp, 4);
for($i = 0; $i < $finished; $i++)
{
$o[$i]["soitja"] = trim(fread($rp, 24));
$o[$i]["plate"] = trim(fread($rp, 8));
$o[$i]["auto"] = trim(fread($rp, 32));
//$o[$i]["laps_c"] = hexdec(bin2hex(fread($rp, 1)));
fread($rp, 1);
$o[$i]["pits"] = hexdec(bin2hex (fread($rp, 1). $pits[$i]));
fread($rp, 1);
$o[$i]["maha"] = hexdec(bin2hex(fread($rp, 1)));
$o[$i]["lopp"] = msht2int(fread($rp, 4));
$o[$i]["parim"] = msht2int(fread($rp, 4));
fread($rp, 4);
}
}
?>