14.03.2017, 19:13
Apart from seeing that you check files for existing house (that's stupid) i can see that you will always return valid id ( new id = (1); )
Also you start counting houses from 1, while they should start from 0. Every array start from 0.
That loop var probably has to be less then len variable, since you start from loop from 0. Also you should return some invalid id like -1 and check in command if returned id is actually invalid (not file).
Also you start counting houses from 1, while they should start from 0. Every array start from 0.
Код:
for(new loop = (0), provjera = (1), Data_[64] = "\0"; loop < len; ++ loop)