24.07.2011, 11:18
Looks like you need to use arrays. Try this.
pawn Код:
new Text3D:housesale[sizeof(HouseInfo)];
new Text3D:houseinfo[sizeof(HouseInfo)];
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
format(string4, sizeof(string4), "%s\nSale: %d Saki",HouseInfo[h][hDiscription],HouseInfo[h][hValue]);
housesale[h] = Create3DTextLabel(string4,0xF9A406FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],15,0,1);
}
else
{
format(string4, sizeof(string4), "%s\n Owner: %s",HouseInfo[h][hDiscription], HouseInfo[h][hOwner]);
houseinfo[h] = Create3DTextLabel(string4,0xF9A406FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],15,0,1);
}
}