SA-MP Forums Archive
[Ayuda]Dialog Style MsgBox - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [Ayuda]Dialog Style MsgBox (/showthread.php?tid=147676)



[Ayuda]Dialog Style MsgBox - J96 - 13.05.2010

Hola, qerнa saber cуmo hacer un Dialog Style MsgBox que al aceptar, haga una funciуn, y al rechazar, haga otra.
Gracias de antemano.


Re: [Ayuda]Dialog Style MsgBox - TheChaoz - 13.05.2010

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp(cmdtext, "/dialogo", true) == 0)return ShowPlayerDialog(playerid, 1, 0, "Titulo", "Texto", "Boton 1", "Boton 2");
  return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1)
{
  if(responce){
    //accion
  }
  else{
    //accion
  }
  return 1;
}
espero que te sirva


Re: [Ayuda]Dialog Style MsgBox - J96 - 14.05.2010

Sн, me ha servido.Gracias.