dialog_msgbox help
#1

if i am pressing "cancel" appear server closed connection. i wanna just close the dialog

Код:
 ShowPlayerDialog(i, 9, DIALOG_STYLE_MSGBOX, "job", "You are about to become a Car Jacker", "Accept", "Cancel");
Код:
    if(dialogid == 9)
	{
		if(response)
		{
            if(PlayerInfo[playerid][pJob] == 0)
			{
			    if(GettingJob[playerid] > 0)
                {
                    if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pFMember] < 255)
                    {
                        if(GettingJob[playerid] == 2 || GettingJob[playerid] == 5 || GettingJob[playerid] == 10)
                        {//Allow the 3 jobs for Family Members
                        }
                        else
		                {
		                    SendClientMessage(playerid, COLOR_GREY, "   Cant get a Job, you are in a Family !");
	            	        return 0;
		                }
                    }
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Now that you have confirmed you want the Job, you got a 5 hour Contract.");
	                SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command.");
		            PlayerInfo[playerid][pJob] = GettingJob[playerid];
		            GettingJob[playerid] = 0;
		            return 0;
				}
			}
            else
            {
  			    SendClientMessage(playerid, COLOR_GREY, "   You already have a Job, use /quitjob first !");
		        return 0;
			}
		}
	}
	if(dialogid == 1)
	{
Reply
#2

Show us the complete code for dialog 9 in OnDialogResponse.
You seem to have Kick() inside the else statement of "if(response)".
Reply
#3

this is all.... dont have any kick in else of if(Response)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)