09.04.2013, 05:23
Make sure both are separated like this:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == WEAPON_DIALOG)
{
if(response) // The First Button(OK)
{
if(dialoglist = 0) // The first on List: (Silence)
{
return 1;
}
if(dialoglist = 1) // The second on List
{
return 1;
}
}
}
if(dialogid == DIALOG_LOGIN)//or watever
{
if(response)
{
//stuff
}
}
return 1;
}