What's wrong with this weapon code?


You have to call it shared.lua, not “ninja.lua”. You can include things like ninja.lua in your shared.lua, but you have to have an shared.lua.


Don’t do that YET. Do you have CS:S?
SWEP.Base = "weapon_cs_base"You need CS:S to use that base.

Also what is the exact error?


He means a console error.

Start a singleplayer and when you’re in, scim the console for things involving your gun.

Then put in the error here, so we can help you - if you cant figure it yourself, that is.

Cause the console errors pretty much tells you what is wrong. Anyways, good luck with it.