23.03.2012, 23:50
You need to loop through all your houses and check if any of all houses is for sale:
Hope that gave you an idea about how you should do it.
pawn Код:
#define MAX_HOUSES 100 // Here you insert number of houses you have
for (new i = 0; i<MAX_HOUSES; i++)
{
if(HouseInfo[i][Owned] == false)
{
// the dialog here
}
}