18.06.2012, 16:04
Quote:
I have the same problem. The thing is, in PHP forum peolple won't understand PAWN and send us to PAWN forum and vice versa. So if anyone could just explain these two lines:
Код:
$s1 = ($s1 + $buf[$n]) % 65521; $s2 = ($s2 + $s1) % 65521; Also I think the problem may be "<<" which in PAWNO is for power while in PHP might be something else... |
http://en.wikipedia.org/wiki/Modulo_operation
'In computing, the modulo operation finds the remainder of division of one number by another.'