Jump to content
  • 0

Problema Dialog


9MMG

Question

Problema intalnita (descriere): In joc nu apare tot dialog-ul ce ar trebuii sa apara (toate masinile pe care le detii), apare doar 1 si jumatate din cea dea doua...
Ero(area / rile) / warning-(ul / urile):-
Liniile de cod / sursa / script-ul(obligatoriu):

		if(response)
	    {
	    	if(listitem == 0)
			{
			    if(PlayerInfo[playerid][pPcarkey] == 0 && PlayerInfo[playerid][pmotokey] == 0 && PlayerInfo[playerid][phelikey] == 0 && PlayerInfo[playerid][pprcarkey] == 0 && PlayerInfo[playerid][pprcarkey2] == 0 && PlayerInfo[playerid][pPPluscarkey] == 0 && PlayerInfo[playerid][pPPluscarkey2] == 0) return SendClientMessage(playerid,COLOR_WHITE,"{FFB870}You do not have a vehicle.");
                new stringy[128],string1[128],string2[356],string3[356],string4[356],string5[356],string6[356];

				if(PlayerInfo[playerid][pPcarkey] != 0)
    			{
                	new carid = PlayerInfo[playerid][pPcarkey],locked[6];
					if(CarInfo[carid][cLock] == 1)
						{
  							locked = "Yes";
						}
					else
						{
		    				locked = "No";
						}
					format(string1,sizeof(string1),"Vehicle 1: Model:[%s] Locked:[%s] KM:[%.0f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
				}
				if(PlayerInfo[playerid][pmotokey] != 0)
    				{
					new carid = PlayerInfo[playerid][pmotokey],locked[6];
					if(CarInfo[carid][cLock] == 1)
						{
		    				locked = "Yes";
						}
					else
						{
		    				locked = "No";
						}
					format(string2,sizeof(string2),"Vehicle 2: Model:[%s] Locked:[%s] KM:[%.0f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
					}
				if(PlayerInfo[playerid][pprcarkey] != 0)
					{
					new carid = PlayerInfo[playerid][pprcarkey],locked[6];
					if(CarInfo[carid][cLock] == 1)
						{
		    				locked = "Yes";
						}
					else
						{
		    				locked = "No";
						}
					format(string3,sizeof(string3),"Premium Vehicle 1: Model:[%s] Locked:[%s] KM:[%.0f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
					}
				if(PlayerInfo[playerid][pprcarkey2] != 0)
					{
					new carid = PlayerInfo[playerid][pprcarkey2],locked[6];
					if(CarInfo[carid][cLock] == 1)
						{
		    				locked = "Yes";
						}
					else
						{
		    				locked = "No";
						}
					format(string4,sizeof(string4),"Premium Vehicle 2: Model:[%s] Locked:[%s] KM:[%.0f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
					}
				if(PlayerInfo[playerid][pPPluscarkey] != 0)
					{
					new carid = PlayerInfo[playerid][pPPluscarkey],locked[6];
					if(CarInfo[carid][cLock] == 1)
						{
		    				locked = "Yes";
						}
					else
						{
		    				locked = "No";
						}
					format(string5,sizeof(string5),"Plus Vehicle 1: Model:[%s] Locked:[%s] KM:[%.0f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
					}
				if(PlayerInfo[playerid][pPPluscarkey2] != 0)
					{
					new carid = PlayerInfo[playerid][pPPluscarkey2],locked[6];
					if(CarInfo[carid][cLock] == 1)
						{
		    				locked = "Yes";
						}
					else
						{
		    				locked = "No";
						}
					format(string6,sizeof(string6),"Plus Vehicle 2: Model:[%s] Locked:[%s] KM:[%.0f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
					}
 				format(stringy, sizeof(stringy), "%s\n%s\n%s\n%s\n%s\n%s",string1,string2,string3,string4,string5,string6);
				ShowPlayerDialog(playerid, DIALOG_CARSS, DIALOG_STYLE_MSGBOX, "Cars Info:", stringy,"Back","Exit");
			}
CMD:betacmd(playerid,params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    if(IsPlayerConnected(playerid))
    {
        ShowPlayerDialog(playerid,DIALOG_CARSS2,DIALOG_STYLE_LIST, "Car Tool:", "1.Cars Info\n2.Spawn your car.", "Select","Exit");
	}
	return 1;
}


Imagini / Video (optional):-
Ati incercat sa rezolvati singur?: Da

Edited by 9MMG
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
if(response)
	    {
	    	if(listitem == 0)
			{
			    if(PlayerInfo[playerid][pPcarkey] == 0 && PlayerInfo[playerid][pmotokey] == 0 && PlayerInfo[playerid][phelikey] == 0 && PlayerInfo[playerid][pprcarkey] == 0 && PlayerInfo[playerid][pprcarkey2] == 0 && PlayerInfo[playerid][pPPluscarkey] == 0 && PlayerInfo[playerid][pPPluscarkey2] == 0) return SendClientMessage(playerid,COLOR_WHITE,"{FFB870}You do not have a vehicle.");
                new stringy[728],string1[428],string2[456],string3[456],string4[456],string5[456],string6[456];

				if(PlayerInfo[playerid][pPcarkey] != 0)
    			{
                	new carid = PlayerInfo[playerid][pPcarkey],locked[6];
					if(CarInfo[carid][cLock] == 1)
						{
  							locked = "Yes";
						}
					else
						{
		    				locked = "No";
						}
					format(string1,sizeof(string1),"Vehicle 1: Model:[%s] Locked:[%s] KM:[%.0f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
				}
				if(PlayerInfo[playerid][pmotokey] != 0)
    				{
					new carid = PlayerInfo[playerid][pmotokey],locked[6];
					if(CarInfo[carid][cLock] == 1)
						{
		    				locked = "Yes";
						}
					else
						{
		    				locked = "No";
						}
					format(string2,sizeof(string2),"Vehicle 2: Model:[%s] Locked:[%s] KM:[%.0f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
					}
				if(PlayerInfo[playerid][pprcarkey] != 0)
					{
					new carid = PlayerInfo[playerid][pprcarkey],locked[6];
					if(CarInfo[carid][cLock] == 1)
						{
		    				locked = "Yes";
						}
					else
						{
		    				locked = "No";
						}
					format(string3,sizeof(string3),"Premium Vehicle 1: Model:[%s] Locked:[%s] KM:[%.0f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
					}
				if(PlayerInfo[playerid][pprcarkey2] != 0)
					{
					new carid = PlayerInfo[playerid][pprcarkey2],locked[6];
					if(CarInfo[carid][cLock] == 1)
						{
		    				locked = "Yes";
						}
					else
						{
		    				locked = "No";
						}
					format(string4,sizeof(string4),"Premium Vehicle 2: Model:[%s] Locked:[%s] KM:[%.0f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
					}
				if(PlayerInfo[playerid][pPPluscarkey] != 0)
					{
					new carid = PlayerInfo[playerid][pPPluscarkey],locked[6];
					if(CarInfo[carid][cLock] == 1)
						{
		    				locked = "Yes";
						}
					else
						{
		    				locked = "No";
						}
					format(string5,sizeof(string5),"Plus Vehicle 1: Model:[%s] Locked:[%s] KM:[%.0f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
					}
				if(PlayerInfo[playerid][pPPluscarkey2] != 0)
					{
					new carid = PlayerInfo[playerid][pPPluscarkey2],locked[6];
					if(CarInfo[carid][cLock] == 1)
						{
		    				locked = "Yes";
						}
					else
						{
		    				locked = "No";
						}
					format(string6,sizeof(string6),"Plus Vehicle 2: Model:[%s] Locked:[%s] KM:[%.0f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
					}
 				format(stringy, sizeof(stringy), "%s\n%s\n%s\n%s\n%s\n%s",string1,string2,string3,string4,string5,string6);
				ShowPlayerDialog(playerid, DIALOG_CARSS, DIALOG_STYLE_MSGBOX, "Cars Info:", stringy,"Back","Exit");
			}
CMD:betacmd(playerid,params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    if(IsPlayerConnected(playerid))
    {
        ShowPlayerDialog(playerid,DIALOG_CARSS2,DIALOG_STYLE_LIST, "Car Tool:", "1.Cars Info\n2.Spawn your car.", "Select","Exit");
	}
	return 1;
}

Incearca asa.

Link to comment
Share on other sites

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.