[ajuda] dialog
#1

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == loja1)
    {
        ShowPlayerDialog(playerid, loja1, 2, "Alimentos", "Pizza R$12,00\nBolacha recheada R$3,00\nSucrilhos R$5,00\nBarra de Chocolate R$10,00\nPгo frances R$1,00", "Comprar", "Cancelar");
        return 1;
    }
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == loja1)
    {
        if(pizza)
        {
            SetPlayerHealth(playerid, +16);
            GivePlayerMoney(playerid, -12);
            SendClientMessage(playerid, AZUL, "Vocк comeu uma pizza");
        }
        return 1;
    }
}
como faзo pra identificar que eu escolhi a pizza?
Reply


Messages In This Thread
[ajuda] dialog - by Cristhian - 23.09.2011, 21:59
Re: [ajuda] dialog - by [O.z]Caroline - 23.09.2011, 22:07
Re: [ajuda] dialog - by Hardware - 23.09.2011, 22:16
Re: [ajuda] dialog - by Jason_King - 23.09.2011, 22:22
Re: [ajuda] dialog - by Hardware - 23.09.2011, 22:23
Re: [ajuda] dialog - by Jason_King - 23.09.2011, 22:30
Re: [ajuda] dialog - by Dolby - 23.09.2011, 22:33
Re: [ajuda] dialog - by Jason_King - 23.09.2011, 22:36
Re: [ajuda] dialog - by humildadeforever - 23.09.2011, 22:46
Re: [ajuda] dialog - by Cristhian - 24.09.2011, 02:42

Forum Jump:


Users browsing this thread: 1 Guest(s)