From c0df52edf128a8984f87103e86ea11a4f476d514 Mon Sep 17 00:00:00 2001 From: Maxim <39855328+MaximWizard@users.noreply.github.com> Date: Wed, 27 Jan 2021 18:27:40 +0300 Subject: [PATCH] Change Dialog_Close You can only close 1 dialog. There is no point in adding an additional parameter with the function name. --- mdialog.inc | 261 ++++++++++++++++++++++++++-------------------------- 1 file changed, 130 insertions(+), 131 deletions(-) diff --git a/mdialog.inc b/mdialog.inc index 3e6b459..0c82596 100644 --- a/mdialog.inc +++ b/mdialog.inc @@ -221,134 +221,134 @@ static 6.2265625, // } 9.34375, // ~ 8.0, //  - 14.1640625, // - 9.0703125, // - 4.4453125, // - 6.6640625, // - 8.0, // - 16.0, // - 8.8984375, // - 8.8984375, // - 8.8984375, // - 16.0, // - 17.5, // - 5.328125, // - 17.0, // - 9.765625, // - 14.0, // - 11.5, // - 9.7734375, // - 4.4453125, // - 4.4453125, // - 8.0, // - 8.0, // - 5.6015625, // - 8.8984375, // - 16.0, // - 16.0, // - 15.5, // - 5.328125, // - 14.5, // - 8.0078125, // - 9.7734375, // - 9.6640625, // + 14.1640625, // € + 9.0703125, //  + 4.4453125, // ‚ + 6.6640625, // ƒ + 8.0, // „ + 16.0, // … + 8.8984375, // † + 8.8984375, // ‡ + 8.8984375, // ˆ + 16.0, // ‰ + 17.5, // Š + 5.328125, // ‹ + 17.0, // Œ + 9.765625, //  + 14.0, // Ž + 11.5, //  + 9.7734375, //  + 4.4453125, // ‘ + 4.4453125, // ’ + 8.0, // “ + 8.0, // ” + 5.6015625, // • + 8.8984375, // – + 16.0, // — + 16.0, // ™ + 15.5, // š + 5.328125, // › + 14.5, // œ + 8.0078125, //  + 9.7734375, // ž + 9.6640625, // Ÿ 4.4453125, // - 9.953125, // - 8.8984375, // - 8.8984375, // - 8.8984375, // - 7.7890625, // - 4.4765625, // - 8.8984375, // + 9.953125, // ¡ + 8.8984375, // ¢ + 8.8984375, // £ + 8.8984375, // ¤ + 7.7890625, // ¥ + 4.4765625, // ¦ + 8.8984375, // § -1.0, - 10.703125, // - 11.7890625, // - 11.3828125, // - 8.8984375, // - 9.34375, // - 0.0, // - 11.7890625, // - 4.4140625, // - 6.3984375, // - 8.78125, // - 4.4453125, // - 4.4453125, // - 7.1484375, // - 9.21875, // - 8.8984375, // - 5.328125, // - 8.8984375, // - 17.8359375, // - 8.8359375, // - 8.8984375, // - 4.4453125, // - 10.671875, // - 8.8984375, // - 4.5, // - 11.5546875, // - 11.5, // - 11.5546875, // - 9.0703125, // - 11.3984375, // - 10.671875, // - 14.4609375, // - 10.0234375, // - 11.5, // - 11.5, // - 9.765625, // - 11.2265625, // - 13.328125, // - 11.5546875, // - 12.4453125, // - 11.5, // - 10.671875, // - 11.5546875, // - 9.7734375, // - 9.953125, // - 13.65625, // - 10.671875, // - 11.6875, // - 11.2421875, // - 16.078125, // - 16.3046875, // - 13.9140625, // - 15.6640625, // - 11.5, // - 11.3828125, // - 16.5, // - 11.5, // - 8.8984375, // - 9.8828125, // - 9.8359375, // - 6.6640625, // - 10.15625, // - 8.8984375, // - 11.34375, // - 7.953125, // - 9.8359375, // - 9.8359375, // - 8.0078125, // - 10.1640625, // - 11.8359375, // - 9.6640625, // - 9.7734375, // - 9.6640625, // - 9.7734375, // - 8.8984375, // - 7.8359375, // - 8.8984375, // - 14.0, // - 8.8984375, // - 9.8359375, // - 9.2890625, // - 13.3359375, // - 13.5, // - 11.6640625, // - 13.6640625, // - 9.8359375, // - 8.8359375, // - 13.6640625, // - 9.3359375 // + 10.703125, // ¨ + 11.7890625, // © + 11.3828125, // ª + 8.8984375, // « + 9.34375, // ¬ + 0.0, // ­ + 11.7890625, // ® + 4.4140625, // ¯ + 6.3984375, // ° + 8.78125, // ± + 4.4453125, // ² + 4.4453125, // ³ + 7.1484375, // ´ + 9.21875, // µ + 8.8984375, // ¶ + 5.328125, // · + 8.8984375, // ¸ + 17.8359375, // ¹ + 8.8359375, // º + 8.8984375, // » + 4.4453125, // ¼ + 10.671875, // ½ + 8.8984375, // ¾ + 4.5, // ¿ + 11.5546875, // À + 11.5, // Á + 11.5546875, //  + 9.0703125, // à + 11.3984375, // Ä + 10.671875, // Å + 14.4609375, // Æ + 10.0234375, // Ç + 11.5, // È + 11.5, // É + 9.765625, // Ê + 11.2265625, // Ë + 13.328125, // Ì + 11.5546875, // Í + 12.4453125, // Î + 11.5, // Ï + 10.671875, // Ð + 11.5546875, // Ñ + 9.7734375, // Ò + 9.953125, // Ó + 13.65625, // Ô + 10.671875, // Õ + 11.6875, // Ö + 11.2421875, // × + 16.078125, // Ø + 16.3046875, // Ù + 13.9140625, // Ú + 15.6640625, // Û + 11.5, // Ü + 11.3828125, // Ý + 16.5, // Þ + 11.5, // ß + 8.8984375, // à + 9.8828125, // á + 9.8359375, // â + 6.6640625, // ã + 10.15625, // ä + 8.8984375, // å + 11.34375, // æ + 7.953125, // ç + 9.8359375, // è + 9.8359375, // é + 8.0078125, // ê + 10.1640625, // ë + 11.8359375, // ì + 9.6640625, // í + 9.7734375, // î + 9.6640625, // ï + 9.7734375, // ð + 8.8984375, // ñ + 7.8359375, // ò + 8.8984375, // ó + 14.0, // ô + 8.8984375, // õ + 9.8359375, // ö + 9.2890625, // ÷ + 13.3359375, // ø + 13.5, // ù + 11.6640625, // ú + 13.6640625, // û + 9.8359375, // ü + 8.8359375, // ý + 13.6640625, // þ + 9.3359375 // ÿ }; static @@ -403,7 +403,7 @@ stock MDialog_ShowPlayerDialog(playerid, dialogid, style, const caption[], const { if (dialogid != -1 && dialogid != MDIALOG_DIALOG_ID) { if (Dialog_IsOpen(playerid)) { - Dialog_Close(playerid, gDialogFunction[playerid][4], false); + Dialog_Close(playerid, false); } } @@ -490,13 +490,12 @@ stock Dialog_Open(playerid, const function[], style, const caption[], const info Dialog_Close */ -stock Dialog_Close(playerid, const function[] = "", showDialog = true) -{ +stock Dialog_Close(playerid, showDialog = true) +{ + Dialog_Interrupt(playerid, gDialogFunction[playerid][4]); gIsDialogOpen{playerid} = false; gDialogFunction[playerid][0] = '\0'; - Dialog_Interrupt(playerid, function); - if (showDialog) { return MDialogFix_ShowPlayerDialog(playerid, -1, DIALOG_STYLE_MSGBOX, " ", " ", " ", ""); }