Detect House ID from Dialog[How to improve code optimization]
#5

A house can only be owned by 1 player, so use latest version of y_iterate (of YSI library) and change to:
pawn Код:
new Iterator: HouseKey<MAX_PLAYERS, MAX_HOUSES>;
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)