xJulianGilx Posted April 16, 2020 Share Posted April 16, 2020 idownload this ransks system and i have bugs please help me solve it here> https://community.multitheftauto.com/index.php?p=resources&s=details&id=15543 and these are the errors that appear in the console ERROR: xX_RankSystem \ server.Lua: 127: exports: call to server resource not running (tactics) [string "?"] ERROR: xX_RankSystem \ server.Lua: 127: Attempt to index a null value addEventHandler("onPlayerDamage", root, function(attacker, _, _, loss) if exports.tactics:getRoundMapInfo()["modename"] ~= "lobby" then <línea 127> if attacker and getElementType(attacker) == "player" and attacker ~= source then local account = getPlayerAccount(attacker) if account and not isGuestAccount(account) then local accountName = getAccountName(account) temporaryTable[accountName]["total_hits"] = temporaryTable[accountName]["total_hits"] + 1 temporaryTable[accountName]["total_dmg"] = temporaryTable[accountName]["total_dmg"] + math.ceil(loss) local assistsTable = getElementData(source, "assists") or {} if assistsTable[accountName] then assistsTable[accountName] = assistsTable[accountName] + math.ceil(loss) else assistsTable[accountName] = math.ceil(loss) end setElementData(source, "assists", assistsTable, false) if isTimer(assistsTimer[source]) then resetTimer(assistsTimer[source]) else assistsTimer[source] = setTimer(function(source) assistsTimer[source] = nil if isElement(source) then setElementData(source, "assists", {}, false) end end, 10000, 1, source) end end end end end) Thank you for viewing my message, I would appreciate responses if you can Link to comment
Ahmed Ly Posted April 16, 2020 Share Posted April 16, 2020 Rename gamemode "tactics-12-r20" to tactics Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now