how to remove Question request
#2

pawn Код:
if (dialogid == DIALOGID+66)
    {
        if(response == 0 && ServerInfo[MustRegister] == 1)
        {
            Kick(playerid);
        }
        if(response)
        {
            if (strlen(inputtext) < 4 || strlen(inputtext) > 20)
            {
                new rstring[256];
                format(rstring,256,"Sorry %s\n\nThe length of your password should contain more \nthan 3 characters and less than 20 characters! \n\n Please, re-enter the Password:",pName(playerid));
                return ShowPlayerDialog(playerid,DIALOGID+68,DIALOG_STYLE_INPUT,"Register Error!",rstring,"Register","Quit");
            }
            if (udb_Create(PlayerName2(playerid)))
            {
                ShowPlayerDialog(playerid,DIALOG_TYPE_QUESTION,DIALOG_STYLE_INPUT,"LuxAdmin - Account Safety Question","Type a security question, for when you forget\n your password, you just answer this Question.","Next","End");
//CODE CONTINUES...
Remove the ShowPlayerDialog line.

Also add the line:
pawn Код:
public OnPlayerConnect(playerid)
{
    AccInfo[playerid][NoQuestion] = 1;
    return 1;
}
to OnPlayerConnect.
Reply


Messages In This Thread
how to remove Question request - by [M.A]Angel[M.A] - 23.08.2012, 06:19
Re: how to remove Question request - by clarencecuzz - 23.08.2012, 07:35

Forum Jump:


Users browsing this thread: 1 Guest(s)