31.03.2012, 15:13
What's wrong with this?
pawn Code:
case DIALOG_LOGIN: {
if( response )
{
if( !strlen( inputtext ) ) //They hit enter without entering a password.
return ShowPlayerDialog( playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Welcome to SA:MP - Zone DM!", "\n\nYou have entered an invalid password, in order to assist you, a plain text password field has been enabled.\n\nPlease enter a password in order to register an account with us.", "Submit", "Quit" );
if( !strcmp( accInfo [ playerid ] [ Password ], inputtext, false ) )
return ShowPlayerDialog( playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Welcome to SA:MP - Zone DM!", "\n\nYou have entered an invalid password, in order to assist you, a plain text password field has been enabled.\n\nPlease enter a password in order to register an account with us.", "Submit", "Quit" );
INI_ParseFile( GetAccountPath( playerid ), "LoadUser_%s", .bExtra = true, .extra = playerid );
GivePlayerMoney( playerid, 1000 );
}
}