For the weapons that the Weapons Level 31 code doesn't affect, you must go into private lobby, change it to the gun that the code did not affect, start the game, then after that leave the game and it will give that weapon level 31.