udb_hash DUDB
#9

Quote:
Originally Posted by mick88
Посмотреть сообщение
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;
(i don't know what % does) and maybe I'd be able to script that in PHP.

Also I think the problem may be "<<" which in PAWNO is for power while in PHP might be something else...
% = remainder by division.
http://en.wikipedia.org/wiki/Modulo_operation

'In computing, the modulo operation finds the remainder of division of one number by another.'
Reply


Messages In This Thread
udb_hash DUDB - by gernes - 13.02.2010, 18:02
Re: udb_hash DUDB - by xCoder - 13.02.2010, 18:22
Re: udb_hash DUDB - by gernes - 13.02.2010, 18:22
Re: udb_hash DUDB - by xCoder - 13.02.2010, 18:53
Re: udb_hash DUDB - by Luka P. - 10.03.2010, 16:46
Re: udb_hash DUDB - by mick88 - 31.03.2010, 17:29
Re: udb_hash DUDB - by mick88 - 07.04.2010, 20:13
Re: udb_hash DUDB - by Scienziatopazzo - 18.06.2012, 16:01
Re: udb_hash DUDB - by Revo - 18.06.2012, 16:04

Forum Jump:


Users browsing this thread: 1 Guest(s)