Jump to content
  • 0

Serverul nu raspunde la dialoguri


eXtreMe96

Question

Salut am o problema un fs numi raspunde la dialoguri de exmplu nici dialogul acesta nu merge

if(!strcmp(cmdtext, "/relax", true))

{

    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "are you sure?", "Are you sure you have time to relax?", "yes", "no");

    return 1;

}

if(response)//they pressed the first button   

    {

    switch(dialogid)//if your using only one dialog this isn't needed but you never know.

        {

    case 1://our dialog

        {

          switch(listitem)//wich listitem is chosen

        {

            case 0://the first item in the list

            {

                if(GetPlayerMoney(playerid) < 1) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash.");

                GivePlayerMoney(playerid, -1);

                SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);

            }

            case 1:

            {

                if(GetPlayerMoney(playerid) < 2) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash.");

                GivePlayerMoney(playerid, -2);

                SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);

            }

            case 2:

            {

                if(GetPlayerMoney(playerid) < 3) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash.");

                GivePlayerMoney(playerid, -3);

                SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);

            }

        }

        }

            //from here we added things

            case 2://the new dialog

            {

                ApplyAnimation(playerid,"BEACH","Lay_Bac_Loop",4.1,1,1,1,1,10);//this will let you relax for 10 seconds

            }

            //till here

}

    }

Imi apare scrisul din showplayerdialog dar nu vrea sami raspunda cu functia din OnDialogResponse care ar fi problema?

lol

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.