31.03.2012, 15:31
You both did, thank you. I'll +rep you momentarily. I have another question... I just got the following printed in my server console, I've never seen it before..
The code:
? O.o
Quote:
[11:34:30] Warning: PlayerDialogResponse PlayerId: 0 dialog ID doesn't match last sent dialog ID |
pawn Code:
case DIALOG_LOGIN: {
if( response )
{
if( !strlen( inputtext ) ) //They hit enter without entering a password.
return ShowPlayerDialog( playerid, DIALOG_LOGIN, 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 your password below to be logged in.", "Submit", "Quit" );
if( strcmp( accInfo[ playerid ] [ Password ], inputtext, false ) )
return ShowPlayerDialog( playerid, DIALOG_LOGIN, 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 your password below to be logged in.", "Submit", "Quit" );
INI_ParseFile( GetAccountPath( playerid ), "LoadUser_%s", .bExtra = true, .extra = playerid );
player_Logged [ playerid ] = true;
SpawnPlayer( playerid );
GivePlayerMoney( playerid, 9999999 );
}
else if( !response )
{
SendClientMessage( playerid, 0xFFFFFFFF, "You have chosen to quit the server. We hope you visit again soon!" );
Kick( playerid );
}
}