09.06.2010, 20:48
Ok this I know is an easy fix, but I can't figure out what it is.. I have a bar menu that has 3 items in it. The first 2 work great. For some reason when I select the 3rd one, nothing happens..
Here is when they enter the checkpoint
After they select their item.
Here is when they enter the checkpoint
pawn Код:
ShowPlayerDialog(playerid, 8, DIALOG_STYLE_LIST, "Bar","Beer\nWine\nRed Bull", "Accept", "Cancel");
pawn Код:
if(dialogid == 8)
{
if(response)
{
if(listitem == 0)//Beer
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
}
if(listitem == 1)//Wine
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_WINE);
if(listitem == 2)//Red Bull
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_SPRUNK);
SetPlayerDrunkLevel (playerid, 0);
}
return 1;
}
}
}
return 1;
}