Qu Hize mal en este Dialog..
#1

Hola Foro samp:

Bueno el problema es que cuando elijo la opcion que quiero no pasa nada nisiquiera cuando cancelo manda el mensaje

pawn Код:
if (strcmp("/Comando", cmdtext, true, 10) == 0)
    {
    ShowPlayerDialog(playerid, 69, DIALOG_STYLE_LIST, "Prueba", "Ayunta LS\nLSPD", "Aceptar", "Cancelar");
        return 1;
     }
Ahi Creo el Dialog ahora el public onplayerdialogresponse:

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid == 69)
    {
        case 1:
        {
            if(!response)
            {
                SendClientMessage(playerid, 0xFF0000FF, "Has cancelado");
                return 1;
            }

            switch(listitem)
            {
                case 0:
                {
                SetPlayerPos(playerid, 1540.4711,-1675.2888,13.5507);
                }
                case 1:
                {
                SendClientMessage(playerid, AMARILLO, "ASDASDASD");
                }

            }

        }
    }
    return 0;
}
Que Ise mal no me sale nada no Anda
Reply


Messages In This Thread
Qu Hize mal en este Dialog.. - by Fede.Zink - 24.02.2012, 00:51
Respuesta: Qu Hize mal en este Dialog.. - by [Nikk] - 24.02.2012, 00:58
Respuesta: Qu Hize mal en este Dialog.. - by Fede.Zink - 24.02.2012, 01:04
Respuesta: Qu Hize mal en este Dialog.. - by ValenRatti - 24.02.2012, 01:22
Respuesta: Qu Hize mal en este Dialog.. - by Jovanny - 24.02.2012, 02:20

Forum Jump:


Users browsing this thread: 1 Guest(s)