Whirlpool Register And Login System Problem
#4

Quote:
Originally Posted by Vince
View Post
Strcmp returns 0 when either string is empty. Show where you load PlayerInfo[playerid][pHash].
Still, how can their raw password ever be the same as their hashed password? Not very well thought out.
I forgot to point out that pHash is the player password... (I know it is not really very well coded cause i was tired when i made this..)

This is where i load it :

pawn Code:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
    INI_Int("Password",PlayerInfo[playerid][pHash]);
    INI_Int("Cash",PlayerInfo[playerid][pCash]);
    INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
    INI_Int("Kills",PlayerInfo[playerid][pKills]);
    INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)