SA-MP Forums Archive
Mysql Whirlpool problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Mysql Whirlpool problem (/showthread.php?tid=361826)



Mysql Whirlpool problem - doreto - 22.07.2012

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");



Re: Mysql Whirlpool problem - newbienoob - 22.07.2012

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



Re: Mysql Whirlpool problem - doreto - 22.07.2012

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 " )


Re: Mysql Whirlpool problem - doreto - 22.07.2012

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


Re: Mysql Whirlpool problem - doreto - 24.07.2012

48h no replay no anser !


Re: Mysql Whirlpool problem - doreto - 24.07.2012

Come on really need help !


Re: Mysql Whirlpool problem - doreto - 25.07.2012

SOLVED