MySQL SELECT Not getting last row
#4

I set rows to 15 and save cache in memory but then I check if the rows are more than 15. Change:
pawn Код:
ShowPlayerDialog(playerid, 13, DIALOG_STYLE_TABLIST, "Clan Members", members, rows > 15 ? ("Next") : ("Close"), "Cancel");
to:
pawn Код:
ShowPlayerDialog(playerid, 13, DIALOG_STYLE_TABLIST, "Clan Members", members, cache_is_valid(gPlayer_ClanMembers[playerid]) ? ("Next") : ("Close"), "Cancel");
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):
pawn Код:
for (new i = 14; i != rows; i++)
to:
pawn Код:
for (new i = 15; i != rows; i++)
Reply


Messages In This Thread
MySQL SELECT Not getting last row - by Shinja - 31.07.2016, 16:30
Re: MySQL SELECT Not getting last row - by Konstantinos - 31.07.2016, 17:17
Re: MySQL SELECT Not getting last row - by Shinja - 31.07.2016, 19:57
Re: MySQL SELECT Not getting last row - by Konstantinos - 31.07.2016, 20:12
Re: MySQL SELECT Not getting last row - by Shinja - 31.07.2016, 20:20
Re: MySQL SELECT Not getting last row - by Konstantinos - 31.07.2016, 20:51

Forum Jump:


Users browsing this thread: 1 Guest(s)