Problem with MD5 hash...
#1

if(MD5_Hash(params) != strval(str))

Here i get error:
pawn Код:
error 033: array must be indexed (variable "MD5_Hash")
Here script must do these steps:
> Hash writed password which is 'params'
> check if hashed params == strval(str), which is retrieved from mysql.

How to fix that error? :/
Reply
#2

No one know ? :/
Reply
#3

Try to put MD5_Hash into a array?
Reply
#4

Quote:
Originally Posted by [Luka
]
Try to put MD5_Hash into a array?
I think you are misinterpreting the error.

Quote:
Originally Posted by Dreftas
if(MD5_Hash(params) != strval(str))

Here i get error:
pawn Код:
error 033: array must be indexed (variable "MD5_Hash")
Here script must do these steps:
> Hash writed password which is 'params'
> check if hashed params == strval(str), which is retrieved from mysql.

How to fix that error? :/
Please post your MD5_Hash function. I don't think you want to compare the strval with the hash. MD5 hashes are alphanumeric (letters and numbers). Using strval will almost certainly alter the hash. Once I see the hash function I can offer you more guidance.
Reply
#5

I fixed it.
Im just used udb_hash for a long time(which is integer) so i left strval and other shit with it Now when i started php+mysql I changed hash to md5 which is new for me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)