KaydenSonic

KaydenSonic 1.3

  • Thread starter KaySonicTheHedgehog
  • Start date
ye at the very top

OLD
Code:
if (VERSION == 202) and (SUBVERSION < 14)
    local function blackout(v)
        v.drawFill()
        v.drawString(160, 100, ("this mod requires version 2.2.14 or higher"),V_REDMAP, "center")
    end
    hud.add(blackout, "title")
    hud.add(blackout, "game")
    error("Your copy of 2.2 is obsolete and not compatible with this mod. Please update to version 2.2.14 or higher.", 0)
end

local function SafeFreeslot(...)
    for _, item in ipairs({...})
        if rawget(_G, item) == nil
            freeslot(item)
        end
    end
end

NEW
Code:
if (VERSION == 202) and (SUBVERSION < 13)
    local function blackout(v)
        v.drawFill()
        v.drawString(160, 100, ("this mod requires version 2.2.13 or higher"),V_REDMAP, "center")
    end
    hud.add(blackout, "title")
    hud.add(blackout, "game")
    error("Your copy of 2.2 is obsolete and not compatible with this mod. Please update to version 2.2.13 or higher.", 0)
end

local function SafeFreeslot(...)
    for _, item in ipairs({...})
        if rawget(_G, item) == nil
            freeslot(item)
        end
    end
end
 
ye at the very top

OLD
Code:
if (VERSION == 202) and (SUBVERSION < 14)
    local function blackout(v)
        v.drawFill()
        v.drawString(160, 100, ("this mod requires version 2.2.14 or higher"),V_REDMAP, "center")
    end
    hud.add(blackout, "title")
    hud.add(blackout, "game")
    error("Your copy of 2.2 is obsolete and not compatible with this mod. Please update to version 2.2.14 or higher.", 0)
end

local function SafeFreeslot(...)
    for _, item in ipairs({...})
        if rawget(_G, item) == nil
            freeslot(item)
        end
    end
end

NEW
Code:
if (VERSION == 202) and (SUBVERSION < 13)
    local function blackout(v)
        v.drawFill()
        v.drawString(160, 100, ("this mod requires version 2.2.13 or higher"),V_REDMAP, "center")
    end
    hud.add(blackout, "title")
    hud.add(blackout, "game")
    error("Your copy of 2.2 is obsolete and not compatible with this mod. Please update to version 2.2.13 or higher.", 0)
end

local function SafeFreeslot(...)
    for _, item in ipairs({...})
        if rawget(_G, item) == nil
            freeslot(item)
        end
    end
end

Ok Thx i credit you in the update log when i update it
 
Top