help (dyaloglogin)
#7

Quote:
Originally Posted by Sime30
Посмотреть сообщение
Change your code where it starts with ELSE with this

pawn Код:
else
            {
                PlayerInfo[playerid][FailLogin]++;
                SendClientMessage(playerid,red,"ACCOUNT: Login failed! Incorrect Password");
                printf("LOGIN: %s has failed to login, Wrong password (%s) Attempt (%d)", PlayerName2(playerid), inputtext, PlayerInfo[playerid][FailLogin] );
                if(PlayerInfo[playerid][FailLogin] == MAX_FAIL_LOGINS)
                {
                    format(string, sizeof(string), "%s has been kicked (Failed Logins)", PlayerName2(playerid) );
                    SendClientMessageToAll(grey, string);
                    print(string);
                    Kick(playerid);
                }
                    // here you can re-show your dialog if they typed wrong
               
            }
Quote:
Originally Posted by Schneider
Посмотреть сообщение
With ShowPlayerDialog
PHP код:
    else
            {
                
PlayerInfo[playerid][FailLogin]++;
                
SendClientMessage(playerid,red,"ACCOUNT: Login failed! Incorrect Password");
                
printf("LOGIN: %s has failed to login, Wrong password (%s) Attempt (%d)"PlayerName2(playerid), inputtextPlayerInfo[playerid][FailLogin] );
                if(
PlayerInfo[playerid][FailLogin] == MAX_FAIL_LOGINS)
                {
                    
format(stringsizeof(string), "%s has been kicked (Failed Logins)"PlayerName2(playerid) );
                    
SendClientMessageToAll(greystring);
                    print(string);
                    
Kick(playerid);
            }
            return 
ShowPlayerDialog(playerid9048DIALOG_STYLE_INPUT"{FF0000}Login"dialogstr"Login""Cancel");
            }
    } 
not work
Reply


Messages In This Thread
help (dyaloglogin) - by s3ek - 08.02.2015, 22:28
Re: help (dyaloglogin) - by Sime30 - 08.02.2015, 22:56
Re: help (dyaloglogin) - by s3ek - 08.02.2015, 23:11
Re: help (dyaloglogin) - by Sime30 - 08.02.2015, 23:30
Re: help (dyaloglogin) - by s3ek - 09.02.2015, 00:20
Re: help (dyaloglogin) - by Schneider - 09.02.2015, 00:37
Re: help (dyaloglogin) - by s3ek - 09.02.2015, 00:41
Re: help (dyaloglogin) - by Schneider - 09.02.2015, 01:02
Re: help (dyaloglogin) - by s3ek - 09.02.2015, 01:18
Re: help (dyaloglogin) - by Schneider - 09.02.2015, 02:31

Forum Jump:


Users browsing this thread: 1 Guest(s)