#6

i got it from here
Код:
public OnPropTextdrawUpdate()
{
	new PropertyString[128];
	for(new h = 0; h < sizeof(HouseInfo); h++)
	{
		if(HouseInfo[h][hOwned] == 0)
		{
		  if(HouseInfo[h][hEntrancex] != 0.000000 && HouseInfo[h][hEntrancey] != -1250.349243 && HouseInfo[h][hEntrancez] != 78.334503)
		  {
		    Delete3DTextLabel(HouseLabel[h]);
			  format(PropertyString,sizeof(PropertyString),"House is UNOWNED! \n House ID: %d \n Price: $%d \n Description: %s \n Level Needed: %d",HouseInfo[h][hWorld], HouseInfo[h][hValue],HouseInfo[h][hDiscription], HouseInfo[h][hLevel]);
				HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
			}
		}
		if(HouseInfo[h][hOwned] == 1)
		{
		  Delete3DTextLabel(HouseLabel[h]);
			format(PropertyString,sizeof(PropertyString),"House is Owned by %s \n House ID: %d \n Rent Price: $%d \n Description: %s \n To Rent Type /rentroom", HouseInfo[h][hOwner],HouseInfo[h][hWorld], HouseInfo[h][hRent], HouseInfo[h][hDiscription]);
			HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
		}
	}
Reply


Messages In This Thread
Help - by traxrex - 23.06.2010, 12:33
Re: Help - by traxrex - 23.06.2010, 12:55
Re: Help - by CAR - 23.06.2010, 12:58
Re: Help - by Finn - 23.06.2010, 13:04
Re: Help - by CAR - 23.06.2010, 13:06
Re: Help - by traxrex - 23.06.2010, 16:29

Forum Jump:


Users browsing this thread: 2 Guest(s)