05.09.2010, 12:21
Try to use this code for your php...
It should give the same result as the pawn one.
Код:
function num_hash($pass)
{
$length = strlen($pass);
$s1 = 1;
$s2 = 0;
for($i=0; $i<$length; $i++)
{
$s1 = ($s1 + ord($pass[$i])) % 65521;
$s2 = ($s2 + $s1) % 65521;
}
$wy= ($s2 << 16) + $s1;
return $wy;
}

