31.07.2018, 12:55
Check this https://sampwiki.blast.hk/wiki/MySQL/R40
and the code need be like this
and the code need be like this
Код:
function:Query_LoadFactionRanks(factionid) { new str[128]; new rows = cache_num_rows(); for (new i = 0; i < rows; i++) { for (new j = 1; j < MAX_FACTION_RANKS; j++) { format(str, sizeof(str), "FactionRank%i", j); cache_get_value(i, str, FactionRanks[factionid][j], 60); } } return 1; }