Jump to content
  • 0

Problema House,Bizz,SBizz 3d text label


AndrewTG01

Question

Problema intalnita (descriere): Daca dau /buybiz , text-ul de vanzare nu dispare si se amesteca cu cel care apare cand am cumparat biz-ul
Ero(area / rile) / warning-(ul / urile): Nu sunt erori sau warning-uri
Liniile de cod / sursa / script-ul(obligatoriu): 

                for(new h = 0; h < sizeof(SBizzInfo); h++)
				{
					if(PlayerToPoint(2.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
					{
						if(SBizzInfo[h][sbOwned] == 1)
						{
							format(string, sizeof(string), "{FFFFFF}%s\n{0066CC}Owner : %s\nExtortion by : %s\nEntrance Fee : $%d Level : %d \nto enter type /enter",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbLevelNeeded]);
						}
						else
						{
							format(string, sizeof(string), "{FFFFFF}%s\n{0066CC}This Business is for sale\nCost: $%d Level : %d \nto buy this Business type /buybiz",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);
						}
						Create3DTextLabel(string, 0x0080FFFF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 40.0, 0, 0);
						return 1;
					}
				}
				for(new h = 0; h < sizeof(HouseInfo); h++)
				{
					if(PlayerToPoint(2.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
					{
						if(HouseInfo[h][hOwned] == 1)
						{
							if(HouseInfo[h][hRentabil] == 0)
							{
								format(string, sizeof(string), "This House is owned by %s\nLevel : %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
							}
							else
							{
								format(string, sizeof(string), "This House is owned by %s\nRent: $%d Level : %d\nType /rentroom to rent a room",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
							}
							Create3DTextLabel(string, 0x0080FFFF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 40.0, 0, 0);
							return 1;
						}
						else
						{
							format(string, sizeof(string), "This House is for sale\nDiscription: %s \nCost: $%d\n Level : %d\nto buy this house type /buyhouse",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
						}
						Create3DTextLabel(string, 0x0080FFFF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 40.0, 0, 0);
						return 1;
					}
				}
				for(new h = 0; h < sizeof(BizzInfo); h++)
				{
					if(PlayerToPoint(2.0, i, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]))
					{
						if(BizzInfo[h][bOwned] == 1)
						{
							format(string, sizeof(string), "%s\nOwner : %s\nExtortion by : %s\nEntrance Fee : $%d Level : %d \nto enter type /enter",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bEntranceCost],BizzInfo[h][bLevelNeeded]);
						}
						else
						{
							format(string, sizeof(string), "%s\nThis Business is for sale\nCost: $%d Level : %d \nto buy this Business type /buybiz",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]);
						}
						Create3DTextLabel(string, 0x0080FFFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 40.0, 0, 0);
						return 1;
					}
				}


Imagini / Video (optional): http://imgur.com/a/qhBGj
Ati incercat sa rezolvati singur?:  Da

Edited by AndrewTG01
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
Just now, AndrewTG01 said:

Problema intalnita (descriere): Daca dau /buybiz , text-ul de vanzare nu dispare si se amesteca cu cel care apare cand am cumparat biz-ul
Ero(area / rile) / warning-(ul / urile): Nu sunt erori sau warning-uri
Liniile de cod / sursa / script-ul(obligatoriu): 

                for(new h = 0; h < sizeof(SBizzInfo); h++)
				{
					if(PlayerToPoint(2.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
					{
						if(SBizzInfo[h][sbOwned] == 1)
						{
							format(string, sizeof(string), "{FFFFFF}%s\n{0066CC}Owner : %s\nExtortion by : %s\nEntrance Fee : $%d Level : %d \nto enter type /enter",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbLevelNeeded]);
						}
						else
						{
							format(string, sizeof(string), "{FFFFFF}%s\n{0066CC}This Business is for sale\nCost: $%d Level : %d \nto buy this Business type /buybiz",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);
						}
						Create3DTextLabel(string, 0x0080FFFF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 40.0, 0, 0);
						return 1;
					}
				}
				for(new h = 0; h < sizeof(HouseInfo); h++)
				{
					if(PlayerToPoint(2.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
					{
						if(HouseInfo[h][hOwned] == 1)
						{
							if(HouseInfo[h][hRentabil] == 0)
							{
								format(string, sizeof(string), "This House is owned by %s\nLevel : %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
							}
							else
							{
								format(string, sizeof(string), "This House is owned by %s\nRent: $%d Level : %d\nType /rentroom to rent a room",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
							}
							Create3DTextLabel(string, 0x0080FFFF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 40.0, 0, 0);
							return 1;
						}
						else
						{
							format(string, sizeof(string), "This House is for sale\nDiscription: %s \nCost: $%d\n Level : %d\nto buy this house type /buyhouse",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
						}
						Create3DTextLabel(string, 0x0080FFFF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 40.0, 0, 0);
						return 1;
					}
				}
				for(new h = 0; h < sizeof(BizzInfo); h++)
				{
					if(PlayerToPoint(2.0, i, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]))
					{
						if(BizzInfo[h][bOwned] == 1)
						{
							format(string, sizeof(string), "%s\nOwner : %s\nExtortion by : %s\nEntrance Fee : $%d Level : %d \nto enter type /enter",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bEntranceCost],BizzInfo[h][bLevelNeeded]);
						}
						else
						{
							format(string, sizeof(string), "%s\nThis Business is for sale\nCost: $%d Level : %d \nto buy this Business type /buybiz",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]);
						}
						Create3DTextLabel(string, 0x0080FFFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 40.0, 0, 0);
						return 1;
					}
				}


Imagini / Video (optional): http://imgur.com/a/qhBGj
Ati incercat sa rezolvati singur?:  Da

pentru ca nu vad niciun Delete3dTextLabel

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

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.