Correct password but wrong ?
#3

Quote:
Originally Posted by CuervO
Посмотреть сообщение
strcmp returns 1 if both strings are not equal
Not only. It returns either 1 or -1, it depends on which string is bigger.

Although what CuervO said is the solution. Your code basically shows the login dialog if the passwords are the same so you need to change:
pawn Код:
if(strcmp(hashpass,JoueurInfo[playerid][jMDP],true))
to:
pawn Код:
if(!strcmp(hashpass,JoueurInfo[playerid][jMDP]))
ignorecase doesn't matter because Whirlpool always uses upper case.
Reply


Messages In This Thread
Correct password but wrong ? - by SlayerS - 28.02.2014, 20:02
Respuesta: Correct password but wrong ? - by CuervO - 28.02.2014, 20:27
Re: Respuesta: Correct password but wrong ? - by Konstantinos - 28.02.2014, 20:35
Re : Respuesta: Correct password but wrong ? - by SlayerS - 28.02.2014, 20:55
Re : Correct password but wrong ? - by SlayerS - 01.03.2014, 16:11

Forum Jump:


Users browsing this thread: 1 Guest(s)