SA-MP Forums Archive
A y_inline and y_dialog issue - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: A y_inline and y_dialog issue (/showthread.php?tid=444108)



A y_inline and y_dialog issue - yxliang - 15.06.2013

Код:
	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.


Re: A y_inline and y_dialog issue - yxliang - 17.06.2013

Any idea?


Re: A y_inline and y_dialog issue - ReVo_ - 17.06.2013

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


Re: A y_inline and y_dialog issue - yxliang - 30.06.2013

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.


Re: A y_inline and y_dialog issue - yxliang - 03.07.2013

Код:
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.


Re: A y_inline and y_dialog issue - yxliang - 04.07.2013

Need for help.


Re: A y_inline and y_dialog issue - yxliang - 06.07.2013

Need for help again...


Re: A y_inline and y_dialog issue - yxliang - 08.07.2013

Why so hard to find help on the Y_DIALOG include?