23.12.2015, 15:54
Bueno lo ultimo y no los jodo mas ! jaja, se ve que no ando muy bien ya en esto :S
Код:
#define DIALOG_REGALO 115
//elcomando
ShowPlayerDialog(playerid, DIALOG_REGALO+1, DIALOG_STYLE_TABLIST_HEADERS, "їA que regalo desea borrar?", string, "Borrar", "Cancelar");
// el otro comando
ShowPlayerDialog(playerid, DIALOG_REGALO, DIALOG_STYLE_TABLIST_HEADERS, "їA que regalo desea ir?", string, "Ir", "Cancelar");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_REGALO)
{
if(response)
{
if(Regalo[listitem] == INVALID_OBJECT_ID) return 1;
SetPlayerPos(playerid, rX[listitem], rY[listitem], rZ[listitem]);
return 1;
} else return SendClientMessage(playerid, 0xFF0000FF, "Cancelaste");
}
if(dialogid == DIALOG_REGALO+1)
{
if(response)
{
if(Regalo[listitem] == INVALID_OBJECT_ID) return 1;
rX[listitem] = 0.0; rY[listitem] = 0.0; rZ[listitem] = 0.0;
Regalo[listitem] = INVALID_OBJECT_ID;
Delete3DTextLabel(RegaloLabel[listitem]);
RegaloActivado[listitem] = false;
return 1;
} else return SendClientMessage(playerid, 0xFF0000FF, "Cancelaste");
}
return 0;
}
El dialog no responde, ni aprentando cancelar sale "Cancelaste" y me quede sin ideas, los ids estan bien :S

