Mysql Whirlpool problem
#1

Let me first tell about the problem and then i will provite the code,so i've already hash the password but when i check if password match that they type and db its show it correct while im typing wrong password
pawn Код:
new hashpass[129];
WP_Hash(hashpass,sizeof(hashpass),inputtext);
if(!strcmp(hashpass,PlayerInfo[playerid][pPassword]))
{
    SendClientMessage(playerid,-1,"YES");
}else SendClientMessage(playerid,-1,"NO");
PlayerInfo[playerid][pPassword] = its the hashed password thet i take from db

I've try like that too but this time its only say " NO" on first only " YES"
pawn Код:
new hashpass[129];
WP_Hash(hashpass,sizeof(hashpass),inputtext);
if(strcmp(hashpass,PlayerInfo[playerid][pPassword]))
{
    SendClientMessage(playerid,-1,"YES");
}else SendClientMessage(playerid,-1,"NO");
Reply
#2

Try this
pawn Код:
if(!strcmp(hashpass,PlayerInfo[playerid][pPassword],true))
Reply
#3

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
Try this
pawn Код:
if(!strcmp(hashpass,PlayerInfo[playerid][pPassword],true))
Still when i type wrong password its allown me (say " Yes " )
Reply
#4

I dont have idea why its aways say its same password when i enter wrong
Reply
#5

48h no replay no anser !
Reply
#6

Come on really need help !
Reply
#7

SOLVED
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)