Кондиция 28.)
[cswowd.git] / module / armory / show_char_data.php
blob4ec975f0aa05a8eac79486296de39223afe03a14
1 <?php
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]))
13 break;
14 echo "<TR>";
15 $fname = @$gPlayerDataFields[$i];
16 if (empty($fname)) $fname = $i;
17 $float = unpack("f", pack("L",$char_data[$i]));
18 echo "<TD>$i</TD>";
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>";
23 echo "</TR>";
25 echo "</TBODY></TABLE>";