2 dialogs involve with each other
#8

First of all you should replace

Код:
if(dialogid == drinks && response) //
  {
    //
    switch(listitem)
    {
      case 1:
      {
        if(GetPlayerMoney(playerid) < 1) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash.");
        GivePlayerMoney(playerid, -1);
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
      }
      case 2:
      {
        if(GetPlayerMoney(playerid) < 2) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash.");
        GivePlayerMoney(playerid, -2);
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
      }
      case 3:
      {
        if(GetPlayerMoney(playerid) < 3) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash.");
        GivePlayerMoney(playerid, -3);
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
      }
    }

		return 1;
}
by

Код:
if(dialogid == drinks) //
  {
    if(response)
    {
    switch(listitem)
    {
      case 1:
      {
        if(GetPlayerMoney(playerid) < 1) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash.");
        GivePlayerMoney(playerid, -1);
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
      }
      case 2:
      {
        if(GetPlayerMoney(playerid) < 2) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash.");
        GivePlayerMoney(playerid, -2);
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
      }
      case 3:
      {
        if(GetPlayerMoney(playerid) < 3) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash.");
        GivePlayerMoney(playerid, -3);
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
      }
     }
    }

		return 1;
}
Show me your Showplayerdialog drinks and licence
Reply


Messages In This Thread
2 dialogs involve with each other - by Jochemd - 05.04.2010, 07:26
Re: 2 dialogs involve with each other - by AiVAMAN - 05.04.2010, 07:27
Re: 2 dialogs involve with each other - by Jochemd - 05.04.2010, 07:31
Re: 2 dialogs involve with each other - by scott1 - 05.04.2010, 07:56
Re: 2 dialogs involve with each other - by Jochemd - 05.04.2010, 08:00
Re: 2 dialogs involve with each other - by scott1 - 05.04.2010, 08:01
Re: 2 dialogs involve with each other - by Jochemd - 05.04.2010, 08:28
Re: 2 dialogs involve with each other - by scott1 - 05.04.2010, 08:36
Re: 2 dialogs involve with each other - by Jochemd - 05.04.2010, 08:45

Forum Jump:


Users browsing this thread: 1 Guest(s)