Dialog Help
#3

Why not?

Just an example:

PHP код:

#define WEAPONS_DIALOG 1201
#define RIFLES_DIALOG 1202
// public OnPlayerCommandText(playerid, cmdtext[])
if(!strcmp(cmdtext"/w"))
{
    
ShowPlayerDialog(playeridWEAPONS_DIALOGDIALOG_STYLE_LIST, .....);
}
// public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
switch(dialogid)
{
    case 
WEAPONS_DIALOG:
    {
        if(
response)
        {
            if(
listitem == 1)
            {
                
ShowPlayerDialog(playeridRIFLES_DIALOGDIALOG_STYLE, LIST, ....); 
            }
        }
        
        break;
    }
        

Reply


Messages In This Thread
Dialog Help - by Aephout - 19.04.2015, 14:14
Re: Dialog Help - by ChuckyBabe - 19.04.2015, 14:18
Re: Dialog Help - by Fel486 - 19.04.2015, 14:18
Re: Dialog Help - by Aephout - 19.04.2015, 14:20
Re: Dialog Help - by Fel486 - 19.04.2015, 15:20

Forum Jump:


Users browsing this thread: 1 Guest(s)