Problem with dialog
#7

Quote:
Originally Posted by Thanos1997
Посмотреть сообщение
Try this:

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{     
	if(dialogid == DIALOG_IZVADIOSOBNU1)
        {
            if(response)
            {
		new message[128];
                if(listitem == 0)
                {
                ShowPlayerDialog(playerid, DIALOG_IZVADIOSOBNU2, DIALOG_STYLE_LIST,""COL_CYAN"SPOL","Muski\nZenski","Dalje","");
		}
            }
        }
        
        else if(dialogid == DIALOG_IZVADIOSOBNU2)
        {
        	if(response)
            	{
			new message[128];
                	if(listitem == 0)
                	{
                    		ClearText(playerid);
				PlayerInfo[playerid][pCSex] = 0;
                    		format(message, sizeof(message), ""COL_ORANGE"[SERVER]: "COL_WHITE"U redu, "COL_CYAN"musko "COL_WHITE"ste.");
				SendClientMessage(playerid, 0xFFFFFFFF, message);
			}
			else if(listitem == 1)
			{
                    		ClearText(playerid);
				PlayerInfo[playerid][pCSex] = 1;
                    		format(message, sizeof(message), ""COL_ORANGE"[SERVER]: "COL_WHITE"U redu, "COL_CYAN"zensko "COL_WHITE"ste.");
                    		SendClientMessage(playerid, 0xFFFFFFFF, message);
			}
		}
        }
	return 1;
}
thanks bro

For what is CASE and for what is if(dialogid ==NAMEIDALOG)
Reply


Messages In This Thread
Problem with dialog - by TiXz0r - 07.12.2014, 12:54
Re: Problem with dialog - by TiXz0r - 07.12.2014, 13:21
Re: Problem with dialog - by TiXz0r - 07.12.2014, 14:19
Re: Problem with dialog - by Nightkill - 07.12.2014, 14:47
Re: Problem with dialog - by TiXz0r - 07.12.2014, 15:18
Re: Problem with dialog - by Thanos1997 - 07.12.2014, 15:24
Re: Problem with dialog - by TiXz0r - 07.12.2014, 21:40
Re: Problem with dialog - by Nightkill - 07.12.2014, 22:09

Forum Jump:


Users browsing this thread: 5 Guest(s)