View Single Post
  #7  
Old 03-08-2002, 05:46 AM
DeletedUser
Fire Beetle
 
Join Date: Sep 2002
Posts: 0
Default

Actually, I dont think I used unpack for the stats... :P

Code:
array($stats);
$stats['str'] = hexdec(bin2hex(substr($row[0],123,1)));
$stats['sta'] = hexdec(bin2hex(substr($row[0],124,1)));
$stats['cha'] = hexdec(bin2hex(substr($row[0],125,1)));
...
Hope that helps (that was before I found out about pack/unpack)
Reply With Quote