[HELP]Time dialog questions
#1

that we do wrong?

I use Y commands....

Код:
YCMD:ora(playerid, params[], help)
{
    #pragma unused params
    #pragma unused help
    ShowPlayerDialog(playerid, DIALOGO_ORA, DIALOG_STYLE_LIST, "Seleziona l'orario desiderato", "Giorno - 12:00 \nPomeriggio - 18:00 \nSera 21:00 \nNotte - 00:00", "Ok", "Cancella");
    return 1;
}
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(response)
    {
    switch(dialogid)
        {
	    case 1: 
    	    {
           	switch(listitem)
        	{
        	    case 0:
        	    {
		    SetPlayerTime(playerid, 12, 0);
        	    }
        	    case 1: 
        	    {
                    SetPlayerTime(playerid, 18, 0);
        	    }
        	    case 2: 
        	    {
                    SetPlayerTime(playerid, 21, 0);
        	    }
        	    case 3:
        	    {
                    SetPlayerTime(playerid, 0, 0);
        	    }
        	}
    	    }
	}
    }
    return 1;
}
Reply
#2

This:
pawn Код:
switch(dialogid)
{
   case 1:
To:
pawn Код:
switch(dialogid)
{
   case DIALOGO_ORA:
Maybe it works then.
Reply
#3

Thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)