[Ayuda]Dialog Style MsgBox
#1

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.
Reply
#2

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
Reply
#3

Sн, me ha servido.Gracias.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)