Dialog Doesn't Shows
#1

pawn Code:
if(dialogid == 2)
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
                    Logged[playerid] = 1;
                }
                else
                {
                   /*  This One */ ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"",""Red"You Have Entered An Incorrect Password Please re-enter Your Password","Ok","Quit");
                }
                return 1;
            }
        }
        return 1;
}
They Are No Errors While compiling but The Dialog Doesn't shows when i Enter the Wrong Password.
Reply
#2

If you are using any other filterscripts, you should return 0; at the end of OnPlayerDialogResponse; also assure that the number 2 doesn't conflict with any others in your script.
Reply
#3

i Don't Use any Filterscripts and it doesn't conflict with any other.
Reply
#4

pawn Code:
if(dialogid == 2)
{

    if ( !response ) return Kick ( playerid );
    if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
        Logged[playerid] = 1;
                }
                else
                {
                   /*  This One */ ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"",""Red"You Have Entered An Incorrect Password Please re-enter Your Password","Ok","Quit");
                }
                return 1;
            }
        return 1;
}
Reply
#5

Not Working
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)