17.12.2012, 05:16
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.
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.
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;
}