strcmp question
#6

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..

Quote:

[11:34:30] Warning: PlayerDialogResponse PlayerId: 0 dialog ID doesn't match last sent dialog ID

The code:

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 );
                    }
                }
? O.o
Reply


Messages In This Thread
strcmp question - by 2KY - 31.03.2012, 15:13
Re: strcmp question - by jotan. - 31.03.2012, 15:15
Re: strcmp question - by 2KY - 31.03.2012, 15:16
Re: strcmp question - by Jochemd - 31.03.2012, 15:17
Re: strcmp question - by ReneG - 31.03.2012, 15:29
Re: strcmp question - by 2KY - 31.03.2012, 15:31
Re: strcmp question - by ReneG - 31.03.2012, 15:38
Re: strcmp question - by 2KY - 31.03.2012, 15:40
Re: strcmp question - by ReneG - 31.03.2012, 15:45
Re: strcmp question - by 2KY - 31.03.2012, 16:02
Re: strcmp question - by mprofitt - 07.05.2012, 20:13

Forum Jump:


Users browsing this thread: 1 Guest(s)