2 //==============================================================================
3 // Скрипт для вывода поля Data игрока с названиями в режиме hex, int, float
4 //==============================================================================
6 function showPlayerData($char_data)
8 global $gPlayerDataFields, $lang;
9 echo "<table class=report border=2><tbody>";
10 for ($i=0;$i<PLAYER_END
;$i++
)
12 if (!isset($char_data[$i]))
15 $fname = @$gPlayerDataFields[$i];
16 if (empty($fname)) $fname = $i;
17 $float = unpack("f", pack("L",$char_data[$i]));
19 echo "<td class=left>$fname</td>";
20 echo "<td>0x".dechex($char_data[$i])."</td>";
21 echo "<td>$char_data[$i]</td>";
22 echo "<td>".$float[1]."</td>";
25 echo "</tbody></table>";