31.07.2011, 14:48
Change HouseSystem to Houses:
pawn Код:
for(new h = 0; h < sizeof(Houses); h++)
{
if(Houses[h][hOwned] == 0)
{
if(Houses[h][hSetted] == 1)
{
format(PropertyString,sizeof(PropertyString),"House is UNOWNED! \n House ID: %d \n Price: $%d \n Description: %s \n Level Needed: %d",Houses[h][hWorld], Houses[h][hValue],Houses[h][hDiscription], Houses[h][hLevel]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FF00AA,Houses[h][hEntrancex], Houses[h][hEntrancey], Houses[h][hEntrancez],25, 0, 1);
}
}
else if(Houses[h][hOwned] == 1)
{
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", Houses[h][hOwner],Houses[h][hWorld], Houses[h][hRent], Houses[h][hDiscription]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFAA,Houses[h][hEntrancex], Houses[h][hEntrancey], Houses[h][hEntrancez],25, 0, 1);
}
}