SA-MP Forums Archive
Server crash when using y_dialog - y_inline - 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: Server crash when using y_dialog - y_inline (/showthread.php?tid=553918)



Server crash when using y_dialog - y_inline - Ahmad45123 - 01.01.2015

For some reason, The server crashes.
Quote:

[14:33:00] *** YSI Error: Format specifier didn't match on inline function Response:..@Ia@Ib@Ib@Ib@Ib@Ib@Ic:iiiis
[14:33:24] [debug] Run time error 5: "Invalid memory access"
[14:33:24] [debug] AMX backtrace:
[14:33:24] [debug] #0 0002322c in Callback_Call (result[E_CALLBACK_DATA:4]=@0x04088654, ... <5 arguments>) at E:\Ahmed\RGRP by Ghazi\pawno\include\YSI\y_inline.inc:1048
[14:33:24] [debug] #1 0002569c in ?? (... <5 arguments>) at E:\Ahmed\RGRP by Ghazi\pawno\include\YSI\y_dialog.inc:332
[14:33:24] [debug] #2 0001e3a0 in public OnDialogResponse (playerid=0, dialogid=0, response=1, listitem=-1, inputtext[]=@0x031462b4 "ILoveYou") at E:\Ahmed\RGRP by Ghazi\pawno\include\YSI\y_hooks/impl.inc:2251

Code :
pawn Код:
inline Response(pid, dialogid, response, listitem, string:inputtext[])
    {
        #pragma unused pid, dialogid, response, listitem, inputtext
        SendClientMessage(playerid, -1, "Hi.");
    }
    Dialog_ShowCallback(playerid, using inline Response, DIALOG_STYLE_INPUT, "SMS", "Enter the text you wish to send", "Enter", "Cancel");
Any help'd be appreciated.


Re: Server crash when using y_dialog - y_inline - rickisme - 01.01.2015

redownload YSI, ****** already fix that issues

https://github.com/Y-Less/YSI-Includes/tree/YSI.tl