09.05.2012, 20:43
pawn Код:
mysql_fetch_field_row(tmp,"Password");
if(strcmp(udb_hash(inputtext) ,true, tmp));
the first line is passing the var into it so no need for tmp=
and the second youll need to use strcmp like i showed,
you cant do
if(string==otherstring)
EDIT:
ops!
Vince is correct, I dont use this hash as its to weak
new code
pawn Код:
mysql_fetch_field_row(tmp,"Password");
if (udb_hash(inputtext) != strval(tmp))
not sure if its better to convert to integer or to format the pass into a string.