/houses command
#1

how can i make a command like say /houses

and it then displays all the properties that are for sale in dialog
Reply
#2

You need to loop through all your houses and check if any of all houses is for sale:
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
               }
}
Hope that gave you an idea about how you should do it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)