Swep Help

Whenever i make a swep it sometimes does not show up in the weapons area, or entities area. i understand exactly where to put it for i have seen tons of tutorials that say to do gmod,gmod,lua,weapons,(foldername),swep

Why would the swep not show up in the weapons or entities area besides putting it in the correct folder(it is)

[lua]
SWEP.Spawnable = true;
SWEP.AdminSpawnable = true;
[/lua]

That fixes most of my problems