Quote:
Originally Posted by RxErT
Try this now:
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_SUPPRESSION)
{
if(response)
{
ShowPlayerDialog(playerid, DIALOG_SUPPRESSION, DIALOG_STYLE_LIST, "Commands", "Attach\nDeattach", "Continue", "Cancel");
}
}
if(dialogid == DIALOG_SUPPRESSION)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, COLOR_AQUA, "TEST");
}
if(listitem == 1)
{
SendClientMessage(playerid, COLOR_AQUA, "TEEEEST");
}
}
}
return 1;
}
You probably forgot to return a value for OnDialogResponse return 1; and missed a bracket.
|
thank u my dude
but when i do /help > suppression system the message from listitem 0 pops up