Sziasztok! A faction system spammolja ezt az errort:
sourceS.lua:117: bad argument #1 to \'ipairs\' (table expected, got boolean)
Ahol van a probléma ott meg ez van:
function getPlayerFromMyFaction(playerSource, playerFactionID)
factionPlayersServer = {}
local facPlaQuery = dbPoll(dbQuery(connection, \"SELECT * FROM karakterek WHERE faction = ?\", playerFactionID), -1)
for k, v in ipairs(facPlaQuery) do
factionPlayersServer[#factionPlayersServer + 1] = {[\"name\"] = v[\"charactername\"], [\"rank\"] = v[\"factionrank\"], [\"leader\"] = v[\"factionleader\"], [\"id\"] = v[\"id\"]}
end
triggerClientEvent(playerSource, \"getPlayerFromMyFactionToClient\", playerSource, factionPlayersServer)
end