OnDialogResponse not working
#1

pawn Код:
if(response)
    {
    switch(dialogid == radcat)
        {
        case 1:
            {
            switch(listitem)
            {
                case 0:
                {
                SendClientMessage(playerid, COLOR_GRAD2, "Cake");
                                }
                                case 1:
                {
                SendClientMessage(playerid, COLOR_GRAD2, "Cookie");
                                }

            }
        }
    }
}
No error no warning still not working. Filter script is loading.
Reply
#2

maybe this?
pawn Код:
switch(dialogid)
        {
        case radcat:
radcat needs to be constant btw...
Reply
#3

Quote:
Originally Posted by Babul
Посмотреть сообщение
maybe this?
pawn Код:
switch(dialogid)
        {
        case radcat:
radcat needs to be constant btw...
Still Not working.. May I send you script in paste bin?
Reply
#4

pawn Код:
#define DIALOG_RADCAT 3167

//Change all the ShowPlayerDialog(playerid, radcat, ... ); to:
ShowPlayerDialog(playerid, DIALOG_RADCAT, ... );

//OnDialogResponse:
{
    switch(dialogid)
    {
        case DIALOG_RADCAT:
        {
            if(!response) return SendClientMessage(playerid, -1, "Cancelled.");
            switch(listitem)
            {
                case 0:
                {
                    /* Player selected list item 0.*/
                }
            }
        }
        case DIALOG_OTHER: {}
        case DIALOG_ANOTHER: {}
        //and on..
    }
    return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)