22.07.2012, 13:06
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
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");
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");