ShowPlayerDialog
#1

I need some help, I only want it so that it comes up with a box and you can ONLY click Ok. But if I remove the "Cancel" then the command doesnt work. If you click Cancel In Game it says "Server Closed Connection". Hope someone can help me.
pawn Код:
if(strcmp(cmd, "/jobhelp", true) == 0)
    {
      if(IsPlayerConnected(playerid))
        {
      if(PlayerInfo[playerid][pJob] == 1)
      {
        ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Job Help","Your Job: Dectective\n /find","Ok","Cancel");
            }
      else if(PlayerInfo[playerid][pJob] == 2)
      {
        ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Rules","Your Job: Lawyer\n /free","Ok","Cancel");
            }
        }
        return 1;
    }
Reply
#2

You must have 2 buttons.
ex. something must be where "Cancel" Is.
Reply
#3

How can i stop it so people dont get disconnected from the server IF they press cancel?
Reply
#4

you need to use different Dialog-IDs to use in "OnDialogResponse" for checking for responding to certain menus or lists.
Reply
#5

Post your onplayerdialogresponse
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)