Dialog won't come up
#1

Hey there, I have a problem with the dialog box. when I type /bandana it should open a dialog menu to chose what bandana color to wear, but the menu won't appear. Here let me show you the ondialogresponse code

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(response)
	{
    	switch(dialogid)
		{
			case DIALOG_BANDANA:
   			{
           		switch(listitem)
        		{
        	    	case 0:
        	    	{
        	        	SetPlayerAttachedObject( playerid, 0, 18912, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
        	    	}
        	    	case 1:
        	    	{
        	        	SetPlayerAttachedObject( playerid, 0, 18913, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
        	    	}
        	    	case 2: 
        	    	{
        	        	SetPlayerAttachedObject( playerid, 0, 18914, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
        	    	}
					case 3:
        	    	{
        	        	SetPlayerAttachedObject( playerid, 0, 18915, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
        	    	}
        	    	case 4:
        	    	{
        	        	SetPlayerAttachedObject( playerid, 0, 18916, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
        	    	}
        	    	case 5:
        	    	{
        	        	SetPlayerAttachedObject( playerid, 0, 18917, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
        	    	}
        	    	case 6:
        	    	{
        	        	SetPlayerAttachedObject( playerid, 0, 18918, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
        	    	}
					case 7:
        	    	{
        	        	SetPlayerAttachedObject( playerid, 0, 18891, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
        	    	}
					case 8:
        	    	{
        	        	SetPlayerAttachedObject( playerid, 0, 18892, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
        	    	}
					case 9:
        	    	{
        	        	SetPlayerAttachedObject( playerid, 0, 18893, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
        	    	}
					case 10:
        	    	{
        	        	SetPlayerAttachedObject( playerid, 0, 18894, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
        	    	}
					case 11:
        	    	{
        	        	SetPlayerAttachedObject( playerid, 0, 18895, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
        	    	}
        	    	case 12:
        	    	{
        	    	    RemovePlayerAttachedObject(playerid, 0);
					}
   				}
	    	}
		}
	}
    return 1;
}
And i have this problem not only on this script, but also on others. It is strange that on some scripts, the commands work perfectly...
Reply


Messages In This Thread
Dialog won't come up - by xtreamer - 01.09.2012, 13:27
Re: Dialog won't come up - by TzAkS. - 01.09.2012, 13:31
Re: Dialog won't come up - by xtreamer - 01.09.2012, 13:32
Re: Dialog won't come up - by xtreamer - 01.09.2012, 13:37
Re: Dialog won't come up - by TzAkS. - 01.09.2012, 13:41
Re: Dialog won't come up - by xtreamer - 01.09.2012, 13:49
Re: Dialog won't come up - by [KHK]Khalid - 01.09.2012, 13:50
Re: Dialog won't come up - by xtreamer - 01.09.2012, 13:54
Re: Dialog won't come up - by xtreamer - 01.09.2012, 14:22
Re: Dialog won't come up - by xtreamer - 01.09.2012, 15:26

Forum Jump:


Users browsing this thread: 3 Guest(s)