31.08.2018, 12:58
A house can only be owned by 1 player, so use latest version of y_iterate (of YSI library) and change to:
The per-player iterator will be storing the houses and I do not understand why every post above pass "id" in format. This will start from 1 every time and for every player. Use "i" instead to retrieve the houseid.
As for strval, the text contains brackets so will return 0. You can get rid of them and make it easier to retrieve the value without the need of another foreach loop.
pawn Код:
new Iterator: HouseKey<MAX_PLAYERS, MAX_HOUSES>;
As for strval, the text contains brackets so will return 0. You can get rid of them and make it easier to retrieve the value without the need of another foreach loop.