Jump to content
  • 0

Problema house


Mr.LeX2011

Question

Salut,am si eu o problema deci am facut la casa sa apara:Owner: VoLuM3

Rent: $5000

Level: 10

Scrie:/rentroom

Ownerul aparea dar cum am pus rent,level,/rentroom apare doar Rent: $5000

uitati aici

if(HouseInfo[h][hOwned] == 1)

{

format(string, sizeof(string), "[OWNER]\n%s \nRent:%d \n Level:%d \n Scrie:/rentroom",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);

Create3DTextLabel(string,0x006400FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15,0,1);

AddStaticPickup(1239, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);

//CreateMapIcon(32, 0, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);

pickups++;

}

}

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Ceea ce ai pus tu acolo e bun. Cauta in GameMode public custompickups si adauga in locul celui existent sau inexistent;

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), "~w~This House is owned by~n~%s~n~Level : %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
							}
							else
							{
								format(string, sizeof(string), "~w~This House is owned by~n~%s~n~Rent: $%d Level : %d~n~Type /rentroom to rent a room",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
							}
							GameTextForPlayer(i, string, 5000, 3);
							return 1;
						}
						else
						{
							format(string, sizeof(string), "~w~This House is for sale~n~Discription: %s ~n~Cost: ~g~$%d~n~~w~ Level : %d~n~to buy this house type /buyhouse",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
						}
						GameTextForPlayer(i, string, 5000, 3);
						return 1;
					}
				}

<a href="http://www.userbars.be"><img src="http://img534.imageshack.us/img534/9098/36589.gif" alt="Free userbars" border="0"></a>

Link to comment
Share on other sites

Detaliile casei cu 3DTextLabel. Adauga la Public CustomPickups()

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)
							{
                        Delete3DTextLabel(Text3D:HouseLabel[h]);
						format(string, sizeof(string), "Detinator: %s \n Level: %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
                        HouseLabel[h] = Create3DTextLabel(string ,0xE60000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,8,0,1);
							}
							else
							{
						Delete3DTextLabel(Text3D:HouseLabel[h]);
						format(string, sizeof(string), "Detinator: %s \n Chirie: %d$ Level: %d \n Scrie [/rentroom] pentru a sta \n in chirie.",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
			        	HouseLabel[h] = Create3DTextLabel(string ,0xE60000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,8,0,1);
							}
							return 1;
						}
						else
						{
						Delete3DTextLabel(Text3D:HouseLabel[h]);
			            format(string,sizeof(string),"Proprietate de vanzare \n Pret: %d$ Level: %d \n Scrie [/buyhouse] pentru a cumpara \n Proprietatea.",HouseInfo[h][hValue],HouseInfo[h][hLevel]);
			        	HouseLabel[h] = Create3DTextLabel(string ,0xE60000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,8,0,1);
			        	}
						return 1;
					}
				  }

<a href="http://www.userbars.be"><img src="http://img534.imageshack.us/img534/9098/36589.gif" alt="Free userbars" border="0"></a>

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.