31.07.2016, 20:12
I set rows to 15 and save cache in memory but then I check if the rows are more than 15. Change:
to:
so it will give the "Next" option if we have saved anything (referring to cache).
---
I also commented that 15 first rows were shown that are row IDs 0 to 14 and started the iteration variable from 14 when it should be from 15. Change (from dialog response):
to:
pawn Код:
ShowPlayerDialog(playerid, 13, DIALOG_STYLE_TABLIST, "Clan Members", members, rows > 15 ? ("Next") : ("Close"), "Cancel");
pawn Код:
ShowPlayerDialog(playerid, 13, DIALOG_STYLE_TABLIST, "Clan Members", members, cache_is_valid(gPlayer_ClanMembers[playerid]) ? ("Next") : ("Close"), "Cancel");
---
I also commented that 15 first rows were shown that are row IDs 0 to 14 and started the iteration variable from 14 when it should be from 15. Change (from dialog response):
pawn Код:
for (new i = 14; i != rows; i++)
pawn Код:
for (new i = 15; i != rows; i++)