Dialog response
#2

use a callback do dialog:

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   if(dialogid == ID DO DIALOG)
   {
     if(response == 1)//se ele clicar no botгo 1.....
     {
        if(listitem == 0)//se clicar no 1° item da lista (comeзa a contagem do 0)
        {
          //funзхes
        } else if(listitem == 1)//se clicar no 2° item da lista....
        {
          //funзхes
        }
      } else { return 0; } //se o botгo que ele clicar NГO for o 1°....
      return 1;
   }
   return 1;
}
Reply


Messages In This Thread
Dialog response - by juniorjg - 18.02.2010, 22:41
Re: Dialog response - by Lucas_Brasil - 18.02.2010, 23:09
Re: Dialog response - by juniorjg - 19.02.2010, 01:06
Re: Dialog response - by [SK]Mulek - 19.02.2010, 02:11

Forum Jump:


Users browsing this thread: 1 Guest(s)