(ZCMD)Dialog not showing up
#4

Add this to the top of your script:

Код:
#define DIALOG_JOB_1  1337
#define DIALOG_JOB_SEL_2 1338
Change the Dialog thingy to this:

Код:
if(dialogid == DIALOG_JOB_1)
	{
	    if(!response) return 1;
	    switch(listitem)
	    {
	     case 0: // Mechanic
	        {
	            SetPVarInt(playerid, "jobSelection", 1);
	            ShowPlayerDialog(playerid, 7485, DIALOG_STYLE_LIST, "VIP: Job Center", "Yes", "Proceed", "Cancel");
	        }
	    }
	}
	if(dialogid == DIALOG_JOB_SEL_2)
	{
		if(!response) return 1;

		switch(listitem)
		{
			case 0:
			{
				PlayerInfo[playerid][pJob] = GetPVarInt(playerid, "jobSelection");
				SendClientMessageEx(playerid, COLOR_YELLOW, "You have changed your first job!");
			}
			case 1:
			{
				PlayerInfo[playerid][pJob2] = GetPVarInt(playerid, "jobSelection");
				SendClientMessageEx(playerid, COLOR_YELLOW, "You have changed your second job!");
			}
		}
	}
And change your command to this:

Код:
CMD:htflocker(playerid, params[])
{
	if(!IsPlayerInRangeOfPoint(playerid, 7.0, 1089.7205, -317.7738, 73.9922, 0))
	{
		SendClientMessageEx(playerid, COLOR_GRAD2, "   You are not at the Hilltop Gang Armory Room!");
		return 1;
	}
	if(PlayerInfo[playerid][pLevel] >= 1)
	{
		ShowPlayerDialog(playerid, DIALOG_JOB_1, DIALOG_STYLE_LIST, "Hilltop Farmers Armory", "First Aid Kit\nKevlar Vest\nClothes Corner\nMech Job", "Select", "Cancel");
	}
	return 1;
}
The went over the id limit. I changed it for you!

Hope I helped!
Reply


Messages In This Thread
(ZCMD)Dialog not showing up - by Nick_Phelps - 03.02.2013, 12:51
Re: (ZCMD)Dialog not showing up - by SilverKiller - 03.02.2013, 12:58
Re: (ZCMD)Dialog not showing up - by Zex Tan - 03.02.2013, 13:01
Re: (ZCMD)Dialog not showing up - by Goldino - 03.02.2013, 13:08

Forum Jump:


Users browsing this thread: 1 Guest(s)