Help Dialog
#1

hi guys i have this dialog help but it shows only help not help2 , if i press on a message to show me Chat commands it wont work

Код HTML:
#define DIALOG_HELP 38
#define DIALOG_HELP2 39
Код HTML:
if(dialogid == DIALOG_HELP)
	{
	    if(response)
		{
  			new string1[MAX_STRING],string2[MAX_STRING],string3[MAX_STRING],string4[MAX_STRING],string5[MAX_STRING],string6[MAX_STRING],string7[MAX_STRING],string8[MAX_STRING],stringy[MAX_STRING];
            if(listitem == 0)
	   		{
			    ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Account Commands", "/stats /buylevel /changepass","Back","Exit");
			}
			if(listitem == 1)
	   		{
	   		    format(string1, sizeof(string1), "*** Other *** /cellphonehelp /househelp /renthelp /businesshelp /wthelp /vhelp /leaderhelp /eventhelp /clanhelp");
    			ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Other Commands", stringy,"Back","Exit");
			}
			if(listitem == 2)
	   		{
	   		    format(string1, sizeof(string1), "*** GENERAL *** /admins /helpers /report /helpme /accept /cancel /pay /hqs /charity /givekey /switchkey /shop");
				format(string2, sizeof(string2), "*** GENERAL *** /showlicenses /contract /spawnchange /animlist /gps /achievements /findbiz /findhouse");
			    format(string3, sizeof(string3), "*** GENERAL *** /wars /top /topclans /turfs");
			    format(stringy, sizeof(stringy), "%s\n%s\n%s", string1, string2, string3);
    			ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: General Commands", stringy,"Back","Exit");
			}
			if(listitem == 3)
			{
   				format(string1, sizeof(string1), "(/w)hisper (/s)hout (/f)action (/r)adio");
  	    		ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Chat Commands", string1,"Back","Exit");
			}
			if(listitem == 4)
  			{
  			    if(PlayerInfo[playerid][pMember] == 0)
				{
   					format(string1, sizeof(string1), "You're not in a group.");
  	    			ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", string1,"Back","Exit");
				}
				if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 1)
				{
					format(string1, sizeof(string1), "*** PD *** (/r)adio (/d)epartment (/gov)ernment /duty (/m)egaphone (/su)spect /arrest /wanted /drag /tazer");
					format(string2, sizeof(string2), "*** PD *** /cuff /uncuff /ticket /take /clear /free /ram /radar /mdc /frisk");
					format(stringy, sizeof(stringy), "%s\n%s", string1, string2);
                    ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
				}
				else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 2)
				{
					format(string1, sizeof(string1), "*** FBI *** (/r)adio (/d)epartment (/gov)ernment /duty (/m)egaphone (/su)spect /arrest /wanted /drag /cuff /uncuff ");
					format(string2, sizeof(string2), "*** FBI *** /clear /free /ram /mdc /frisk");
					format(stringy, sizeof(stringy), "%s\n%s", string1, string2);
					ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
				}
				else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 3)
				{
					format(stringy, sizeof(stringy), "*** Government *** (/f)amily /gov /settax /checksafe /givetax");
					ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
				}
				else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 4)
				{
					format(stringy, sizeof(stringy), "*** NR *** (/f)amily /heal /news /live");
					ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
				}
				else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 5)
				{
					format(stringy, sizeof(stringy), "*** Taxi *** (/f)amily /heal /fare");
					ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
				}
				else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 6)
				{
					format(stringy, sizeof(stringy), "*** TTC *** (/f)amily /heal /towcar");
					ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
				}
				else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 7)
				{
					format(stringy, sizeof(stringy), "*** Hitmen *** (/f)amily /heal /undercover /gethit /leavehit /takeguns /broke");
					ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
				}
				else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 8)
				{
					format(stringy, sizeof(stringy), "*** Mafia *** (/f)amily /heal /order /safe /attack /tie /untie");
					ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
				}
				else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 9)
				{
					format(stringy, sizeof(stringy), "*** Mafia *** (/f)amily /heal /order /safe /attack /tie /untie");
					ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
				}
				else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 10)
				{
					format(stringy, sizeof(stringy), "*** Mafia *** (/f)amily /heal /order /safe /attack /tie /untie");
					ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
				}
				else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 11)
				{
					format(stringy, sizeof(stringy), "*** Mafia *** (/f)amily /heal /order /safe /attack /tie /untie");
					ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
				}
			}
			if(listitem == 5)
  			{
	    		format(string1, sizeof(string1), "Lifejump : Robman : Exhaust : Carlock : Rcarjack1 : Lcarjack1 : Rcarjack2 : Lcarjack2");
			    format(string2, sizeof(string2), "Lightcig : Tapcig : Bat : Lean : Hoodfrisked : Dancing : Box : Lowthrow : Highthrow");
			    format(string3, sizeof(string3), "Leftslap : Handsup : Fall : Fallback : Sup : Rap : Push : Akick : Lowbodypush");
			    format(string4, sizeof(string4), "Spray : Headbutt : Pee : Koface : Kostomach : Kiss : Rollfall : Lay2 : Hitch");
			    format(string5, sizeof(string5), "Beach : Medic : Scratch : Sit : Drunk : Bomb : Getarrested : Laugh : Lookout");
			    format(string6, sizeof(string6), "Aim : Crossarms : Lay : Hide : Vomit : Eating : Wave : Shouting : Chant");
			    format(string7, sizeof(string7), "Frisked : Exhausted : Injured : Slapass : Deal : Dealstance : Crack : Wank : Gro");
			    format(string8, sizeof(string8), "Sit : Chat : Fucku : Taichi : Knife : Basket : JumpWater");
			    format(stringy, sizeof(stringy), "%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s", string1, string2, string3, string4, string5, string6, string7, string8);
    			ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Animations Commands", stringy,"Back","Exit");
			}
			if(listitem == 6)
  			{
                format(string1, sizeof(string1), "*** HOUSE *** /open /setrentable /setrent /housewithdraw");
				format(string2, sizeof(string2), "*** HOUSE *** /sellhouseto /sellhouse /houseinfo /setprice");
			    format(stringy, sizeof(stringy), "%s\n%s", string1, string2);
    			ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: House Commands", stringy,"Back","Exit");
			}
			if(listitem == 7)
  			{
				if(PlayerInfo[playerid][pJob] == 1)
				{
				    format(string1, sizeof(string1), "*** Detective *** /find");
				    ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Job Commands", string1,"Back","Exit");
				}
				else if(PlayerInfo[playerid][pJob] == 3)
				{
				    format(string1, sizeof(string1), "*** Mechanic *** /repair /refill /mduty");
				    ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Job Commands", string1,"Back","Exit");
				}
				else if(PlayerInfo[playerid][pJob] == 5)
				{
				    format(string1, sizeof(string1), "*** Trucker *** /work");
				    ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Job Commands", string1,"Back","Exit");
				}
				else if(PlayerInfo[playerid][pJob] == 6)
				{
				    format(string1, sizeof(string1), "*** Pizza Boy *** /getcommand");
				    ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Job Commands", string1,"Back","Exit");
				}
				else if(PlayerInfo[playerid][pJob] == 9)
				{
				    format(string1, sizeof(string1), "*** Arms Dealer *** /materials /sellgun /creategun");
				    ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Job Commands", string1,"Back","Exit");
				}
				else if(PlayerInfo[playerid][pJob] == 10)
				{
				    format(string1, sizeof(string1), "*** WoodCutter *** /loadwood /sellwood /woodbalance");
				    ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Job Commands", string1,"Back","Exit");
				}
			}
			if(listitem == 8)
  			{
				format(string1, sizeof(string1), "*** BUSINESS *** /bizinfo /bizfee / /bizwithdraw /itemprice");
				format(string2, sizeof(string2), "*** BUSINESS *** /open /sellbizto /sellbiz");
				format(stringy, sizeof(stringy), "%s\n%s", string1, string2);
 				ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Business Commands", string1,"Back","Exit");
			}
			if(listitem == 9)
  			{
  			    if(PlayerInfo[playerid][pHelper] == 0)
  			    {
  			        SendClientMessage(playerid, COLOR_GREY, "You aren't an official helper.");
  			        return 1;
				}
  			    if(PlayerInfo[playerid][pHelper] == 1)
  			    {
                    format(string1, sizeof(string1), "** Helper level 1 ** (/he)lperchat /setint /setvw /slap /unfreeze /goto /goback /cc");
					format(string2, sizeof(string2), "** Helper level 1 ** /pm /mute /respawn /hod");
					format(string3, sizeof(string3), "** Helper level 1 ** /helps /oh /ch /hc");
					format(stringy, sizeof(stringy), "%s\n%s\n%s", string1, string2, string3);
 					ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Helper Commands", stringy,"Back","Exit");
				}
				if(PlayerInfo[playerid][pHelper] == 2)
  			    {
					format(string1, sizeof(string1), "** Helper level 1 ** /freeze");
 					ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Helper Commands", stringy,"Back","Exit");
				}
			}
			if(listitem == 10)
  			{
				format(string1, sizeof(string1), "*** Vehicle HELP *** /vehicles /sellvehex /sellvehto /removemods /radiocar /givekey");
				format(string2, sizeof(string2), "*** Vehicle HELP *** /park /plate /vcolor /sellveh /vtow /locate /lock /vehswitch");
				format(string3, sizeof(string3), "*** Vehicle HELP *** /buyneon /neon");
				format(stringy, sizeof(stringy), "%s\n%s\n%s", string1, string2, string3);
 				ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Vehicle Commands", stringy,"Back","Exit");
			}
			if(listitem == 11)
			{
			    format(string1, sizeof(string1), "/withdraw /deposit /transfer");
 				ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Bank Commands", stringy,"Back","Exit");
			}
			if(listitem == 12)
			{
			    format(string1, sizeof(string1), "Se poate da /rob in fata banci intr-un vehicul.");
			    format(string2, sizeof(string2), "Sa ai level 5 tu si inca o persoana ce este in vehicul cu tine + 10 puncte rob.");
				format(stringy, sizeof(stringy), "%s\n%s", string1, string2);
				ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Rob", stringy,"Back","Exit");
			}
		}
	}

	if(dialogid == DIALOG_HELP2)
	{
	    if(response)
		{
			ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_LIST, "SERVER: Commands", "Account\nOther\nGeneral\nChat\nGroups\nAnimations\nHouses\nJobs\nBusinesses\nHelpers\nVehicles\nBank\nRob", "Select","Exit");
		}
		return 1;
	}
Код HTML:
CMD:help(playerid,params[])
{
    if(gLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    if(IsPlayerConnected(playerid))
    {
        ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_LIST, "SERVER: Commands", "Account\nOther\nGeneral\nChat\nGroups\nAnimations\nHouses\nJobs\nBusinesses\nHelpers\nVehicles\nBank\nRob", "Select","Exit");
	}
	return 1;
}
Reply


Messages In This Thread
Help Dialog - by StR_MaRy - 15.12.2015, 03:00
Re: Help Dialog - by PrO.GameR - 15.12.2015, 11:16

Forum Jump:


Users browsing this thread: 1 Guest(s)