Dialog cases.
#4

Sorry for double posting, wouldn't let me edit, but try this.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch( dialogid )
    {
        case DIALOG_REGISTER:
        {
            if (!response) return Kick(playerid);
            if(response)
            {
                // Put your stuff here.
            }
        }

        case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    // Put your stuff here.
                }
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Dialog cases. - by Dan. - 29.06.2012, 18:36
Re: Dialog cases. - by Cxnnor - 29.06.2012, 18:42
Re: Dialog cases. - by newbienoob - 29.06.2012, 18:43
Re: Dialog cases. - by Cxnnor - 29.06.2012, 18:49
Re: Dialog cases. - by Dan. - 29.06.2012, 18:59
Re: Dialog cases. - by [KHK]Khalid - 29.06.2012, 19:24

Forum Jump:


Users browsing this thread: 2 Guest(s)