07.04.2012, 18:44
When I'm comparing the two strings it'n saying wrong password, even the password correct.
Password is hashed in player file.ini
help please
Password is hashed in player file.ini
pawn Код:
if(strcmp(hash(inputtext), pData[playerid][Password]) == 0)
// Loading player data
forward LoadUser_Data(playerid,name[],value[]);
public LoadUser_Data(playerid,name[],value[])
{
INI_Int("Password",pData[playerid][Password]);
INI_Int("Admin",pData[playerid][Admin]);
INI_Int("Level",pData[playerid][Level]);
INI_Int("Kills",pData[playerid][Kills]);
INI_Int("Deaths",pData[playerid][Deaths]);
return 1;
}