28.08.2015, 17:02
No.
Make sure all your DIALOG_ID are unique cross script.
And return 0 if a dialog isnt executed in a script. See comments on the wiki.
Код:
ShowPlayerDialog(playerid, DIALOG_ID, ...)
And return 0 if a dialog isnt executed in a script. See comments on the wiki.
Quote:
|
Originally Posted by samp wiki
Returning 0 in this callback will pass the dialog to another script in case no matching code were found in your gamemode's callback.
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_RULES)
{
if(response) // If they clicked 'Yes' or pressed enter
{
SendClientMessage(playerid, COLOR_GREEN, "Thank you for agreeing to the server rules!");
}
else // Pressed ESC or clicked cancel
{
Kick(playerid);
}
return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
}
return 0; // You MUST return 0 here! Just like OnPlayerCommandText.
}
|

