20.03.2013, 10:38
Remove the if statement with the sscanf and use isnull. Also, use this for checking the password
pawn Код:
#if !defined isnull
#define isnull(%1) \
((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif
pawn Код:
if( strcmp( dini_Get( file, "Password" ), password2 ) )
{
// wrong password;
}
else
{
// welcome back!
}