09.10.2014, 21:50
Buenas, por que cuando clickeo en un textdraw, aparte de ocultarlo, tengo una funciуn mбs para que se ejecute un Dialog, pero no aparece nunca el Dialog, miren:
їAlguna soluciуn?, desde ya muchas gracias. :/
pawn Код:
else if(playertextid == Textdraw6[playerid])
{
if(Informacion[playerid][pItem1] >= 1)
{
PlayerTextDrawHide(playerid, Textdraw0[playerid]);
PlayerTextDrawHide(playerid, Textdraw1[playerid]);
PlayerTextDrawHide(playerid, Textdraw2[playerid]);
PlayerTextDrawHide(playerid, Textdraw3[playerid]);
PlayerTextDrawHide(playerid, Textdraw4[playerid]);
PlayerTextDrawHide(playerid, Textdraw5[playerid]);
PlayerTextDrawHide(playerid, Textdraw6[playerid]);
PlayerTextDrawHide(playerid, Textdraw7[playerid]);
PlayerTextDrawHide(playerid, Textdraw8[playerid]);
PlayerTextDrawHide(playerid, Textdraw9[playerid]);
PlayerTextDrawHide(playerid, Textdraw10[playerid]);
PlayerTextDrawHide(playerid, Textdraw11[playerid]);
PlayerTextDrawHide(playerid, Textdraw12[playerid]);
PlayerTextDrawHide(playerid, Textdraw13[playerid]);
PlayerTextDrawHide(playerid, Textdraw14[playerid]);
PlayerTextDrawHide(playerid, Textdraw15[playerid]);
PlayerTextDrawHide(playerid, Textdraw16[playerid]);
PlayerTextDrawHide(playerid, Textdraw17[playerid]);
PlayerTextDrawHide(playerid, Textdraw18[playerid]);
PlayerTextDrawHide(playerid, Textdraw19[playerid]);
PlayerTextDrawHide(playerid, Textdraw20[playerid]);
CancelSelectTextDraw(playerid);
new text[64];
switch(Informacion[playerid][pItem1])
{
case 1:
{
nombre[playerid] = "Pizza";
objetotomado[playerid] = 1;
}
case 2:
{
nombre[playerid] = "Botella de agua";
objetotomado[playerid] = 2;
}
}
format(text, sizeof(text), "їQue deseas hacer con estб %s?");
ShowPlayerDialog(playerid, DIALOG_OBJETO1, DIALOG_STYLE_MSGBOX, "", text, "Usar", "Tirar");
pawn Код:
switch(dialogid)
{
case DIALOG_OBJETO1:
{
if(response == 1)
{
if(objetotomado[playerid] == 1)
{
if(Informacion[playerid][pHambre] == 0) return SendClientMessage(playerid, -1, "No tienes hambre");
Informacion[playerid][pHambre] = 0;
}
}
else
{
Informacion[playerid][pSlotUsado1] = 0;
Informacion[playerid][pItem1] = 0;
format(text, sizeof(text), "Tiraste tu %s",nombre[playerid]);
SendClientMessage(playerid, -1, text);
}
}
}