It shows again... [Dialog]
#6

Milito, you're dumb, my friend.

I've faced this problem before, you should make a bool or a normal variable. Here's an example.

pawn Код:
new BankPicked[MAX_PLAYERS char]; // This is my own variable in my script, you can change it into anything you want.

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == BankT11 || pickupid == BankT12 || pickupid == BankT13) // Bank financial transaction pickups
    {
        if(BankPicked[playerid] == 0)
        {
            ShowPlayerDialog(playerid, DIALOG_BANK, DIALOG_STYLE_LIST, "blablabla","blablabla","Select","Cancel");
            BankPicked[playerid] =1;
        }
        return 1;
    }
    return 1;
}
So it's like in OnDialogResponse callback, if a player cancels the first dialog, you need to set the variable to 0. Same goes to after the player has used the second dialog (or another dialog). If you still don't understand, PM me. I hope you do.
Reply


Messages In This Thread
It shows again... [Dialog] - by [CG]Milito - 17.12.2012, 02:32
Re: It shows again... [Dialog] - by nmader - 17.12.2012, 02:35
Re: It shows again... [Dialog] - by Buzzbomb - 17.12.2012, 04:14
Re: It shows again... [Dialog] - by Nordic - 17.12.2012, 04:27
Re: It shows again... [Dialog] - by Buzzbomb - 17.12.2012, 05:09
Re: It shows again... [Dialog] - by Huxley - 17.12.2012, 05:16

Forum Jump:


Users browsing this thread: 4 Guest(s)