Dialog help.
#4

you need box where you can write something?

then make this

Код:
if(!strcmp(cmdtext, "/example", true))
{
  SendClientMessageToAll(0xDEEE20FF, "Somebody was type /example");
  ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT
, "HEADER", "Put your text downhere", "Ok", "Cancle");
  return 1;
}
and this somewhere in script

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  
  if(dialogid == 0 && response) 
  {
    
    switch(listitem)
    {
      case 0:
      {
        //do something here
      }
     }
   }
   return 1;
}
Reply


Messages In This Thread
Dialog help. - by NewYorkRP - 06.02.2010, 19:37
Re: Dialog help. - by nastoe - 06.02.2010, 19:38
Re: Dialog help. - by NewYorkRP - 06.02.2010, 19:40
Re: Dialog help. - by nastoe - 06.02.2010, 19:43
Re: Dialog help. - by NewYorkRP - 06.02.2010, 19:48
Re: Dialog help. - by nastoe - 06.02.2010, 19:51
Re: Dialog help. - by NewYorkRP - 06.02.2010, 19:55
Re: Dialog help. - by nastoe - 06.02.2010, 19:57

Forum Jump:


Users browsing this thread: 1 Guest(s)