05.10.2011, 17:35
1:
will crash the script with empty inputtext. fix:
2:
in ShowPlayerDialogWin.............. you have forgotten a debug message:
BTW, it can be nice
Edit
Nah, I've found a bug..
If it returns 1, it won't pass the response to another callbacks. So I suggest doing this:
pawn Код:
CallLocalFunction("ADD_OnDialogResponse", "dddds", playerid, dialogid, response, listitem, inputtext);
pawn Код:
if (inputtext[0] = 0) inputtext[0] = 1;
CallLocalFunction("ADD_OnDialogResponse", "dddds", playerid, dialogid, response, listitem, inputtext);
in ShowPlayerDialogWin.............. you have forgotten a debug message:
pawn Код:
SendClientMessageToAll(0xFFFFFFFF, "ShowPlayerDialog");
Edit
Nah, I've found a bug..
pawn Код:
CallLocalFunction("ADD_OnDialogResponse", "dddds", playerid, dialogid, response, listitem, inputtext);
return 1;
pawn Код:
return CallLocalFunction("ADD_OnDialogResponse", "dddds", playerid, dialogid, response, listitem, inputtext);