A y_inline and y_dialog issue
#1

Код:
	inline Dialog_Response1(pid, dialogid, response, listitem, string:inputtext[])
	{
	#pragma unused inputtext
	if(response) ShowGrafftiDeleteData(playerid,List[listitem]);
	
	}
	
    Dialog_ShowCallback(playerid, using inline Dialog_Response1, DIALOG_STYLE_LIST, "something",string,"ok","cancel");
When I press ok, the server crash. In log, There is a YSI Error about didn't match on inline function.
Reply
#2

Any idea?
Reply
#3

Try to run a simple code:
Код:
	inline Dialog_Response1(pid, dialogid, response, listitem, string:inputtext[])
	{
	#pragma unused inputtext
	if(response) SendClientMessage (playerid, -1, "response true");
else SendClientMessage (playerid, -1, "response false");
	
	}
	
    Dialog_ShowCallback(playerid, using inline Dialog_Response1, DIALOG_STYLE_LIST, "something",string,"ok","cancel");
If the server still crash the problem is the y_inline or y_dialogs.
If not, post ShowGrafftiDeleteData
Reply
#4

Quote:
Originally Posted by ReVo_
Посмотреть сообщение
Try to run a simple code:
Код:
	inline Dialog_Response1(pid, dialogid, response, listitem, string:inputtext[])
	{
	#pragma unused inputtext
	if(response) SendClientMessage (playerid, -1, "response true");
else SendClientMessage (playerid, -1, "response false");
	
	}
	
    Dialog_ShowCallback(playerid, using inline Dialog_Response1, DIALOG_STYLE_LIST, "something",string,"ok","cancel");
If the server still crash the problem is the y_inline or y_dialogs.
If not, post ShowGrafftiDeleteData
I tried that code and same error happened.
Reply
#5

Код:
public OnPlayerConnect(playerid)
{
    inline Response(pid, dialogid, response, listitem, string:inputtext[])
    {
        #pragma unused pid, dialogid, response, listitem, inputtext
        SendClientMessage(playerid, 0xFF0000AA, "You clicked a button!  Good for you!");
        // Inline function will end here.
    }
    Dialog_ShowCallback(playerid, using inline Response, DIALOG_STYLE_MSGBOX, "Title", "Message", "Button 1");
    // Main function will end here.
}
This code is written by ****** and error in my server.
Reply
#6

Need for help.
Reply
#7

Need for help again...
Reply
#8

Why so hard to find help on the Y_DIALOG include?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)