[Tutorial] y_dialog and y_inline
#3

Quote:
Originally Posted by RaeF
Посмотреть сообщение
I got strange bug:

Код:
				
				inline Dialog_Register(pid, response, listitem, string:inputtext[])
				{
				    if(!response)
				    {
				        Kick(playerid);
				    }
				}
response doesn't work well, although i press button 1 or button 2, that just kick me ._.
One button return a canceled response, the other sends a true response. Btw, why would you use kick as a test method? XD

Why not just do this?
Код:
				
				inline Dialog_Register(pid, response, listitem, string:inputtext[])
				{
				    switch(response)
				    {
				        case 0: SendClientMessage(playerid, -1, "Negative");
				        default: SendClientMessage(playerid, -1, "Positive");
				    }
				}
Reply


Messages In This Thread
y_dialog and y_inline - by Misiur - 14.04.2015, 16:54
Re: y_dialog and y_inline - by RaeF - 02.05.2015, 23:37
Re: y_dialog and y_inline - by Crayder - 02.05.2015, 23:59
Re: y_dialog and y_inline - by RaeF - 03.05.2015, 00:33
Re: y_dialog and y_inline - by RaeF - 21.05.2015, 23:37
Re: y_dialog and y_inline - by andyandyy8 - 28.12.2015, 22:24

Forum Jump:


Users browsing this thread: 1 Guest(s)