[Include] AntiDesktopDialog v0.1
#6

1:
pawn Код:
CallLocalFunction("ADD_OnDialogResponse", "dddds", playerid, dialogid, response, listitem, inputtext);
will crash the script with empty inputtext. fix:
pawn Код:
if (inputtext[0] = 0) inputtext[0] = 1;
CallLocalFunction("ADD_OnDialogResponse", "dddds", playerid, dialogid, response, listitem, inputtext);
2:
in ShowPlayerDialogWin.............. you have forgotten a debug message:
pawn Код:
SendClientMessageToAll(0xFFFFFFFF, "ShowPlayerDialog");
BTW, it can be nice

Edit
Nah, I've found a bug..
pawn Код:
CallLocalFunction("ADD_OnDialogResponse", "dddds", playerid, dialogid, response, listitem, inputtext);
return 1;
If it returns 1, it won't pass the response to another callbacks. So I suggest doing this:
pawn Код:
return CallLocalFunction("ADD_OnDialogResponse", "dddds", playerid, dialogid, response, listitem, inputtext);
Reply


Messages In This Thread
AntiDesktopDialog v0.2 - by Meta - 05.10.2011, 17:13
AW: AntiDesktopDialog v0.1 - by olaf137 - 05.10.2011, 17:19
Re: AntiDesktopDialog v0.1 - by System64 - 05.10.2011, 17:19
Re: AntiDesktopDialog v0.1 - by Tigerkiller - 05.10.2011, 17:22
AW: AntiDesktopDialog v0.1 - by Meta - 05.10.2011, 17:28
Re: AntiDesktopDialog v0.1 - by KoczkaHUN - 05.10.2011, 17:35
AW: AntiDesktopDialog v0.1 - by Meta - 05.10.2011, 17:48
Re: AntiDesktopDialog v0.1 - by TheArcher - 05.10.2011, 18:09
Re: AW: AntiDesktopDialog v0.1 - by wups - 06.10.2011, 09:18
Re : AntiDesktopDialog v0.1 - by TheBest6 - 06.10.2011, 10:14

Forum Jump:


Users browsing this thread: 1 Guest(s)