Raised This Month: $51 Target: $400
 12% 

Invalid Weapon Index


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mayor Gamer
Senior Member
Join Date: Nov 2012
Location: GetLocationOfUser(me);
Old 05-13-2014 , 13:12   Invalid Weapon Index
Reply With Quote #1

Hello! Well i have latest tf2items extension in my server, but it seems that new weapons like Ham Shank or something can't be used at all, it just prints in the chat: Invalid Weapon Index.
I know there are more weapons but my SV was updated today and i have to fix and add everything. For now this is what i have. Also do i need to download anything else to fix this? I had this for a year from now. Back in 2013 my sv had the same issue. I can't use new weapons!

Here's my custom admin menu with all the weapons:

adminmenu_custom.cfg
Code:
// Custom admin menu commands.
// For more information:
//
// http://wiki.alliedmods.net/Custom_Admin_Menu_%28SourceMod%29
//
// Note: This file must be in Valve KeyValues format (no multiline comments)
//

"Commands"
{
    "Give Weapons"
    {
        "Scout Weapons"
        {
            "cmd"            "sm_givew #1 @2"
            "admin"        "sm_kick"
            "execute"        "player"
            "1"
            {
                "type"    "player"
                "method"    "name"
                "title"    "Select a Player"
            
            }
            "2"
            {
                "type"    "list"
                "title"    "Scout Weapons"
                "1"        "44"
                "1."        "Sandman"
                "2"        "221"
                "2."        "Holy Mackerel"
                "3"        "317"
                "3."        "Candy Cane"
                "4"        "325"
                "4."        "Boston Basher"
                "5"        "349"
                "5."        "Sun-on-a-Stick"
                "6"        "355"
                "6."        "Fan O'War"
                "7"        "450"
                "7."        "Atomizer"
                "8"        "452"
                "8."        "Three-Rune-Blade"
                "9"        "572"
                "9."        "Unarmed Combat"
                "10"        "648"
                "10."        "Wrap Assasin"
                "11"        "660"
                "11."        "Festive Bat"
                "12"        "160"
                "12."        "Vintage Lugermorph"
                "13"        "222"
                "13."        "Mad Milk"
                "14"        "449"
                "14."        "Winger"
                "15"        "45"
                "15."        "Force-A-Nature"    
                "16"        "220"
                "16."        "Shortstop"
                "17"        "448"
                "17."        "Soda Popper"
                "18"        "669"
                "18."        "Festive Scattergun"
                "19"        "13"
                "19."        "Scattergun"
                "20"        "23"
                "20."        "Pistol"
                "21"        "0"
                "21."        "Bat"
                "22"        "772"
                "22."        "Baby's Face Blaster"
                "23"        "799"
                "23."        "Silver Botkiller Scattergun Mk.I"
                "24"        "808"
                "24."        "Gold Botkiller Scattergun Mk.I"
                "25"        "888"
                "25."        "Rust Botkiller Scattergun Mk.I"
                "26"        "897"
                "26."        "Blood Botkiller Scattergun Mk.I"
                "27"        "906"
                "27."        "Carbonado Botkiller Scattergun Mk.I"
                "28"        "915"
                "28."        "Diamond Botkiller Scattergun Mk.I"
                "29"        "964"
                "29."        "Silver Botkiller Scattergun Mk.II"
                "30"        "973"
                "30."        "Gold Botkiller Scattergun Mk.II"
                "31"        "773"
                "31."        "Pretty Boy's Pocket Pistol"
                "32"        "912"
                "32."        "Flying Guillotine"
                "33"        "833"
                "33."        "Flying Guillotine(Genuine)"
                "34"        "999"
                "34."        "Festive Holy Mackerel"
            }
        }
        "Soldier Weapons"
        {
            "cmd"            "sm_givew #1 @2"
            "admin"        "sm_kick"
            "execute"        "player"
            "1"
            {
                "type"    "player"
                "method"    "name"
                "title"    "Select Player"

            }
            "2"
            {
                "type"    "list"
                "title"    "Soldier Weapons"
                "1"        "128"
                "1."        "Equalizer"
                "2"        "357"
                "2."        "Half-Zatoichi"
                "3"        "416"
                "3."        "Market Gardener"
                "4"        "447"
                "4."        "Disciplinary Action"
                "5"        "129"
                "5."        "Buff Banner"
                "6"        "133"
                "6."        "Gunboats"
                "7"        "226"
                "7."        "Battallion's Backup"
                "8"        "354"
                "8."        "Concheror"
                "9"        "442"
                "9."        "Righteous Bison"
                "10"        "444"
                "10."        "Mantreads"
                "11"        "127"
                "11."        "Direct Hit"
                "12"        "228"
                "12."        "Black Box"
                "13"        "237"
                "13."        "Rocket Jumper"
                "14"        "414"
                "14."        "Liberty Launcher"
                "15"        "441"
                "15."        "Cow Mangler 5000"
                "16"        "513"
                "16."        "Original"
                "17"        "658"
                "17."        "Festive Rocket Launcher"
                "18"        "18"
                "18."        "Rocket Launcher"
                "19"        "10"
                "19."        "Shotgun"
                "20"        "6"
                "20."        "Shovel"
                "21"        "730"
                "21."        "Begger's Bazooka"
                "22"        "800"
                "22."        "Silver Botkiller Rocket Launcher Mk.I"
                "23"        "809"
                "23."        "Gold Botkiller Rocket Launcher Mk.I"
                "24"        "889"
                "24."        "Rust Botkiller Rocket Launcher Mk.I"
                "25"        "898"
                "25."        "Blood Botkiller Rocket Launcher Mk.I"
                "26"        "907"
                "26."        "Carbonado Botkiller Rocket Launcher Mk.I"
                "27"        "916"
                "27."        "Diamond Botkiller Rocket Launcher Mk.I"
                "28"        "965"
                "28."        "Silver Botkiller Rocket Launcher Mk.II"
                "29"        "974"
                "29."        "Gold Botkiller Rocket Launcher Mk.II"
                "30"        "1001"
                "30."        "Festive Buff Banner"
                "31"        "775"
                "31."        "Escape Plan"
            }
        }
        "Pyro Weapons"
        {
            "cmd"            "sm_givew #1 @2"
            "admin"        "sm_kick"
            "execute"        "player"
            "1"
            {
                "type"    "player"
                "method"    "name"
                "title"    "Select Player"

            }
            "2"
            {
                "type"    "list"
                "title"    "Pyro Weapons"
                "1"        "38"
                "1."        "Axtinguisher"
                "2"        "153"
                "2."        "Homewrecker"
                "3"        "214"
                "3."        "Powerjack"
                "4"        "326"
                "4."        "Back Scratcher"
                "5"        "348"
                "5."        "Sharpened Volcano Fragment"
                "6"        "457"
                "6."        "Postal Pummeler"
                "7"        "466"
                "7."        "Maul"
                "8"        "593"
                "8."        "Third Degree"
                "9"        "39"
                "9."        "Flaregun"
                "10"        "351"
                "10."        "Detonator"
                "11"        "595"
                "11."        "Manmelter"
                "12"        "40"
                "12."        "Backburner"
                "13"        "215"
                "13."        "Degreaser"
                "14"        "594"
                "14."        "Phologistinator"
                "15"        "659"
                "15."        "Festive Flamethrower"
                "16"        "21"
                "16."        "Flamethrower"
                "17"        "12"
                "17."        "Shotgun"
                "18"        "2"
                "18."        "Fire Axe"
                "19"        "741"
                "19."        "Rainblower"
                "20"        "798"
                "20."        "Silver Botkiller Flamethrower Mk.I"
                "21"        "807"
                "21."        "Gold Botkiller Flamethrower Mk.I"
                "22"        "887"
                "22."        "Rust Botkiller Flamethrower Mk.I"
                "23"        "896"
                "23."        "Blood Botkiller Flamethrower Mk.I"
                "24"        "905"
                "24."        "Carbonado Botkiller Flamethrower Mk.I"
                "25"        "914"
                "25."        "Diamond Botkiller Flamethrower Mk.I"
                "26"        "963"
                "26."        "Silver Botkiller Flamethrower Mk.II"
                "27"        "972"
                "27."        "Gold Botkiller Flamethrower Mk.II"
                "28"        "740"
                "28."        "Scorch Shot"
                "29"        "739"
                "29."        "Lollichop"
                "30"        "813"
                "30."        "Neon Annihilator"
                "31"        "834"
                "31."        "Neon Annihilator(Genuine)"
                "32"        "1000"
                "32."        "Festive Axtinguisher"
            }
        }
        "Demoman Weapons"
        {
            "cmd"            "sm_givew #1 @2"
            "admin"        "sm_kick"
            "execute"        "player"
            "1"
            {
                "type"    "player"
                "method"    "name"
                "title"    "Select Player"
            }
            "2"
            {
                "type"    "list"
                "title"    "Demoman Weapons"
                "1"        "132"
                "1."        "Eyelander"
                "2"        "172"
                "2."        "Scotman's Skullcutter"
                "3"        "266"
                "3."        "HHH Headtaker"
                "4"        "307"
                "4."        "Ulapool Caber"
                "5"        "327"
                "5."        "Claidheamh Mor"
                "6"        "357"
                "6."        "Half-Zatoichi"
                "7"        "404"
                "7."        "Persian Persuader"
                "8"        "482"    
                "8."        "Nessie's Nine Iron"
                "9"        "609"
                "9."        "Scoottish Handshake"
                "10"        "130"
                "10."        "Scoottish Resistance"
                "11"        "131"
                "11."        "Chargin' Targe"
                "12"        "265"
                "12."        "Sticky Jumper"
                "13"        "406"
                "13."        "Splendid Screen"
                "14"        "661"
                "14."        "Festive Stickybomb Launcher"
                "15"        "308"
                "15."        "Loch-n-Load"
                "16"        "405"
                "16."        "Ali Baba's Wee Booties"
                "17"        "608"
                "17."        "Bootlegger"
                "18"        "1007"
                "18."        "Festive Grenade Launcher"
                "19"        "19"
                "19."        "Grenade Launcher"
                "20"        "20"
                "20."        "Stickybomb Launcher"
                "21"        "1"
                "21."        "Bottle"
                "22"        "996"
                "22."        "Loose Cannon"
                "23"        "661"
                "23."        "Festive Stickybomb Launcher"
                "24"        "797"
                "24."        "Silver Botkiller Stickybomb Launcher Mk.I"
                "25"        "806"
                "25."        "Gold Botkiller Stickybomb Launcher Mk.I"
                "26"        "886"
                "26."        "Rust Botkiller Stickybomb Launcher Mk.I"
                "27"        "895"
                "27."        "Blood Botkiller Stickybomb Launcher Mk.I"
                "28"        "904"
                "28."        "Carbonado Botkiller Stickybomb Launcher Mk.I"
                "29"        "913"
                "29."        "Diamond Botkiller Stickybomb Launcher Mk.I"
                "30"        "962"
                "30."        "Silver Botkiller Stickybomb Launcher Mk.II"
                "31"        "971"
                "31."        "Gold Botkiller Stickybomb Launcher Mk.II"
            }
        }
        "Heavy Weapons"
        {
            "cmd"            "sm_givew #1 @2"
            "admin"        "sm_kick"
            "execute"        "player"
            "1"
            {
                "type"    "player"
                "method"    "name"
                "title"    "Select Player"

            }
            "2"
            {
                "type"    "list"
                "title"    "Heavy Weapons"
                "1"        "43"
                "1."        "Killing Gloves Of Boxing"
                "2"        "239"
                "2."        "Gloves of Running Urgently"
                "3"        "310"
                "3."        "Warrior's Spirit"
                "4"        "331"
                "4."        "Fists of Steel"
                "5"        "426"
                "5."        "Eviction Notice"
                "6"        "587"
                "6."        "Apoco-Fists"
                "7"        "656"
                "7."        "Holiday Punch"
                "8"        "425"
                "8."        "Family Business"
                "9"        "41"
                "9."        "Natascha"
                "10"        "298"
                "10."        "Iron Curtain"
                "11"        "312"
                "11."        "Brass Beast"
                "12"        "424"
                "12."        "Tomislav"
                "13"        "654"
                "13."        "Festive Minigun"
                "14"        "15"
                "14."        "Minigun"
                "15"        "11"
                "15."        "Shotgun"
                "16"        "5"
                "16."        "Fists"
                "17"        "811"
                "17."        "Huo Long Heatmaker"
                "18"        "832"
                "18."        "Huo Long Heatmaker(Genuine)"
                "19"        "850"
                "19."        "Deflector(MvM)"
                "20"        "793"
                "20."        "Silver Botkiller Minigun Mk.I"
                "21"        "802"
                "21."        "Gold Botkiller Minigun Mk.I"
                "22"        "882"
                "22."        "Rust Botkiller Minigun Mk.I"
                "23"        "891"
                "23."        "Blood Botkiller Minigun Mk.I"
                "24"        "900"
                "24."        "Carbonado Botkiller Minigun Mk.I"
                "25"        "909"
                "25."        "Diamond Botkiller Minigun Mk.I"
                "26"        "958"
                "26."        "Silver Botkiller Minigun Mk.II"
                "27"        "867"
                "27."        "Gold Botkiller Minigun Mk.II"
                "28"        "863"
                "28."        "Robo-Sandvich"
                "29"        "1002"
                "29."        "Festive Sandvich"
            }
        }
        "Engineer Weapons"
        {
            "cmd"            "sm_givew #1 @2"
            "admin"        "sm_kick"
            "execute"        "player"
            "1"
            {
                "type"    "player"
                "method"    "name"
                "title"    "Select Player"

            }
            "2"
            {
                "type"    "list"
                "title"    "Engineer Weapons"
                "1"        "28"    
                "1."        "Toolbox"
                "2"        "26"
                "2."        "Destruction PDA"
                "3"        "25"
                "3."        "Construction PDA"
                "4"        "142"
                "4."        "Gunslinger"
                "5"        "155"
                "5."        "Southern Hospitality"
                "6"        "169"
                "6."        "Golden Wrench"
                "7"        "329"
                "7."        "Jag"
                "8"        "589"
                "8."        "Eureka Effect"
                "9"        "662"
                "9."        "Festive Wrench"
                "10"        "140"
                "10."        "Wrangler"
                "11"        "160"
                "11."        "Vinatge Lugermorph"
                "12"        "528"
                "12."        "Short Circuit"
                "13"        "141"
                "13."        "Frontier Justice"
                "14"        "527"
                "14."        "Windowmaker"
                "15"        "588"
                "15."        "Pomson 6000"
                "16"        "9"
                "16."        "Shotgun"
                "17"        "22"
                "17."        "Pistol"
                "18"        "7"
                "18."        "Wrench"
                "19"        "997"
                "19."        "Rescue Ranger"
                "20"        "1004"
                "20."        "Festive Frontier Justice"
                "21"        "795"
                "21."        "Silver Botkiller Wrench Mk.I"
                "22"        "804"
                "22."        "Gold Botkiller Wrench Mk.I"
                "23"        "884"
                "23."        "Rust Botkiller Wrench Mk.I"
                "24"        "893"
                "24."        "Blood Botkiller Wrench Mk.I"
                "25"        "902"
                "25."        "Carbonado Botkiller Wrench Mk.I"
                "26"        "911"
                "26."        "Diamond Botkiller Wrench Mk.I"
                "27"        "960"
                "27."        "Silver Botkiller Wrench Mk.II"
                "28"        "969"
                "28."        "Gold Botkiller Wrench Mk.II"
            }
        }
        "Sniper Weapons"
        {
            "cmd"            "sm_givew #1 @2"
            "admin"        "sm_kick"
            "execute"        "player"
            "1"
            {
                "type"    "player"
                "method"    "name"
                "title"    "Select Player"

            }
            "2"
            {
                "type"    "list"
                "title"    "Sniper Weapons"
                "1"        "171"
                "1."        "Tribalman's Shiv"
                "2"        "232"
                "2."        "Bushwacka"
                "3"        "401"
                "3."        "Shahanshah"    
                "4"        "58"
                "4."        "Jarate"
                "5"        "56"
                "5."        "Huntsman"
                "6"        "230"
                "6."        "Sydney Sleeper"
                "7"        "402"
                "7."        "Bazaar Bargain"
                "8"        "526"
                "8."        "Machina"
                "9"        "664"
                "9."        "Festive Sniper Rifle"
                "10"        "14"
                "10."        "Sniper Rifle"
                "11"        "16"
                "11."        "SMG"
                "12"        "3"
                "12."        "Kukri"
                "13"        "752"
                "13."        "Hitman's Heatmaker"
                "14"        "851"
                "14."        "AWPer Hand"
                "15"        "1005"
                "15."        "Festive Huntsman"
                "16"        "792"
                "16."        "Silver Botkiller Sniper Rifle Mk.I"
                "17"        "801"
                "17."        "Gold Botkiller Sniper Rifle Mk.I"
                "18"        "881"
                "18."        "Rust Botkiller Sniper Rifle Mk.I"
                "19"        "890"
                "19."        "Blood Botkiller Sniper Rifle Mk.I"
                "20"        "899"
                "20."        "Carbonado Botkiller Sniper Rifle Mk.I"
                "21"        "908"
                "21."        "Diamond Botkiller Sniper Rifle Mk.I"
                "22"        "957"
                "22."        "Silver Botkiller Sniper Rifle Mk.II"
                "23"        "966"
                "23."        "Gold Botkiller Sniper Rifle Mk.II"
                "24"        "751"
                "24."        "Cleaner's Carbine"
            }
        }
        "Spy Weapons"
        {
            "cmd"            "sm_givew #1 @2"
            "admin"        "sm_kick"
            "execute"        "player"
            "1"
            {
                "type"    "player"
                "method"    "name"
                "title"    "Select Player"

            }
            "2"
            {
                "type"    "list"
                "title"    "Spy Weapons"
                "1"        "59"
                "1."        "Dead Ringer"
                "2"        "60"
                "2."        "Cloak And Dagger"
                "3"        "297"
                "3."        "Enthusiast's Timepiece"
                "4"        "27"
                "4."        "Disguise Kit"
                "5"        "225"
                "5."        "Your Eternal Reward"
                "6"        "356"
                "6."        "Conniever's Kunai"
                "7"        "461"
                "7."        "Big Earner"
                "8"        "574"
                "8."        "Wanga Prick"
                "9"        "638"
                "9."        "Sharp Dresser"
                "10"        "649"
                "10."        "Spy-cicle"
                "11"        "665"
                "11."        "Festive Knife"
                "12"        "727"
                "12."        "Black Rose"
                "13"        "61"
                "13."        "Ambassador"
                "14"        "161"
                "14."        "Big Kill"
                "15"        "224"
                "15."        "L'Etranger"
                "16"        "460"
                "16."        "Enforcer"
                "17"        "525"
                "17."        "Diamondback"
                "18"        "24"
                "18."        "Revolver"
                "19"        "735"
                "19."        "Sapper"
                "20"        "4"
                "20."        "Knife"
                "21"        "1006"
                "21."        "Festive Ambassador"
                "22"        "810"
                "22."        "Red-Tape Recorder"
                "23"        "831"
                "23."        "Red-Tape Recorder(Genuine)"
                "24"        "933"
                "24."        "Ap-Sap(Genuine)"
                "25"        "794"
                "25."        "Silver Botkiller Knife Mk.I"
                "26"        "803"
                "26."        "Gold Botkiller Knife Mk.I"
                "27"        "883"
                "27."        "Rust Botkiller Knife Mk.I"
                "28"        "892"
                "28."        "Blood Botkiller Knife Mk.I"
                "29"        "901"
                "29."        "Carbonado Botkiller Knife Mk.I"
                "30"        "910"
                "30."        "Diamond Botkiller Knife Mk.I"
                "31"        "959"
                "31."        "Silver Botkiller Knife Mk.II"
                "32"        "968"
                "32."        "Gold Botkiller Knife Mk.II"
                "33"        "947"
                "33."        "Quackenbirdt"
            }
        }
        "Multiple Class Weapons"
        {
            "cmd"            "sm_givew #1 @2"
            "admin"        "sm_kick"
            "execute"        "player"
            "1"
            {
                "type"    "player"
                "method"    "name"
                "title"    "Select Player"
                
            }
            "2"
            {
                "type"    "list"
                "title"    "Promo Weapons"
                "1"        "423"
                "1."        "Saxxy"
                "2"        "264"
                "2."        "Frying Pan"
                "3"        "154"
                "3."        "Pain Train"
                "4"        "880"
                "4."        "Freedom Staff"
                "5"        "939"
                "5."        "Bat Outta Hell"
                "6"        "954"
                "6."        "Memory Maker"
                "7"        "1013"
                "7."        "Ham Shank"
                "8"        "474"
                "8."        "Conscientious Objector"
            }
        }
        "Extra Weapons"
        {
            "cmd"            "sm_givew #1 @2"
            "admin"        "sm_kick"
            "execute"        "player"
            "1"
            {
                "type"    "player"
                "method"    "name"
                "title"    "Select Player"

            }
            "2"
            {
                "type"    "list"
                "title"    "Extra Weapons"
                "1"        "9018"
                "1."        "Valve Rocket Launcher"
                "2"        "9020"
                "2."        "Valve Stickybomb Launcher"
                "3"        "9014"
                "3."        "Valve Sniper Rifle"
                "4"        "9013"
                "4."        "Valve Scattergun"
                "5"        "9021"
                "5."        "Valve Flamethrower"
                "6"        "9017"
                "6."        "Valve Syringe Gun"
                "7"        "9015"
                "7."        "Valve Minigun"
                "8"        "9024"
                "8."        "Valve Revolver"
                "9"        "9009"
                "9."        "Valve Engineer Shotgun"
                "10"        "2041"
                "10."        "Ludmila"
                "11"        "9027"
                "11."        "Spycrab PDA"
                "12"        "2061"
                "12."        "Fire Retandant Suit"
                "13"        "8018"
                "13."        "Rapidfire Valve Rocket Launcher"
                "14"        "7018"
                "14."        "Rapidfire Community Rocket Launcher"
                "15"        "8045"
                "15."        "Derpfan"
                "16"        "9205"
                "16."        "Robin's Random Weapon"
                "17"        "19010"
                "17."        "Beta Pocket Rocket Launcher Variant 1"
                "18"        "19011"
                "18."        "Beta Pocket Shotgun"
                "19"        "19012"
                "19."        "Beta Split Equalizer 1"
                "20"        "19013"
                "20."        "Beta Split Equalizer 2"
                "21"        "19015"
                "21."        "Beta Sniper Rifle"
                "22"        "19016"
                "22."        "Beta Pocket Rocket Launcher Variant 2"
                "23"        "19017"
                "23."        "Beta Pocket Rocket Launcher Variant 3"
                "24"        "2129"
                "24."        "Pocket Protector"
                "25"        "2141"
                "25."        "Texas Ten-Shot"
                "26"        "2161"
                "26."        "Texan Love"
                "27"        "2127"
                "27."        "Hall of Hits"    
                "28"        "2228"
                "28."        "The Army of One"
                "29"        "2009"
                "29."        "Primary Shotty"
                "30"        "2193"
                "30."        "Fighter's Falcata"
                "31"        "2171"
                "31."        "Kopesh Climber"
                "32"        "2197"
                "32."        "Vagineer's Wrench / Rebel's Curse"
                "33"        "2058"
                "33."        "Jar of Ants"
                "34"        "9266"
                "34."        "Horsemann's OP Headtaker"
                "35"        "5142"
                "35."        "Golden Gunslinger"
                }
            }
        }
    }
}
__________________
Mayor Gamer is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 05-13-2014 , 16:07   Re: Invalid Weapon Index
Reply With Quote #2

This isn't a TF2Items issue.
__________________
asherkin is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 05-14-2014 , 06:46   Re: Invalid Weapon Index
Reply With Quote #3

@Original poster, as asherkin said, it's not a tf2items problem but a giveweapons problem that does have a solution: install tf2itemsinfo
WildCard65 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode