House system problem
#4

Well, every hID is initialized to 0 by default and you are checking if it's equal to -1, since it will never be -1, you are always getting a message that all the house slots are full.
Do something like:
pawn Код:
// under OnGameModeInit
for(new i=0; i < MAX_HOUSES; i++)
    hInfo[i][hID] = INVALID_HOUSE_ID;
Reply


Messages In This Thread
House system problem - by Sanady - 11.03.2016, 11:19
Re: House system problem - by dominik523 - 11.03.2016, 11:30
Re: House system problem - by Sanady - 11.03.2016, 11:39
Re: House system problem - by dominik523 - 11.03.2016, 11:42
Re: House system problem - by Sanady - 11.03.2016, 11:45
Re: House system problem - by Runn3R - 11.03.2016, 11:53
Re: House system problem - by dominik523 - 11.03.2016, 11:53
Re: House system problem - by Sanady - 11.03.2016, 12:54
Re: House system problem - by Runn3R - 11.03.2016, 13:00
Re: House system problem - by Sanady - 11.03.2016, 13:08

Forum Jump:


Users browsing this thread: 1 Guest(s)