Dialog >:(
#1

Hay, I tried to make a /color dialog, the dialog works fine, but when i click one of the options nothing happens....

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(response)
    {
    switch(dialogid)
        {
        case 1:
            {
            switch(listitem)
            {
                case 0:
                {
                    SetPlayerColor(playerid, invi);
                }
                case 1:
                {
                    SetPlayerColor(playerid, blue);
                }
                case 2:
                {
                    SetPlayerColor(playerid, red);
                }
            }
            }
    }
    }
    return 1;
}
Yes I added the:
pawn Код:
if(!strcmp(cmdtext, "/color", true))
    {
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What color you want?", "Invi \nBlue \nRed ", "Set", "Cancel");
    }
    return 1;
    }
Reply


Messages In This Thread
Dialog >:( - by Sir_bomber - 30.07.2010, 16:05
Re: Dialog >:( - by ViruZZzZ_ChiLLL - 30.07.2010, 16:23
Re: Dialog >:( - by Sir_bomber - 30.07.2010, 17:08
Re: Dialog >:( - by PotH3Ad - 30.07.2010, 19:03
Re: Dialog >:( - by Kar - 30.07.2010, 19:30

Forum Jump:


Users browsing this thread: 2 Guest(s)