What did I do wrong?

Im trying to make a gun and I think I messed up with the lua so could you tell me what I did wrong.

"if ( SERVER ) then
AddCSLuaFile( “shared.lua” )

SWEP.HoldType = “smg1”

end"

"if ( CLIENT ) then
SWEP.PrintName = “Shawn off Shotgun”
SWEP.Author = “Gameguy214”
SWEP.Slot = 4
SWEP.SlotPos = 1
SWEP.IconLetter = “w”

killicon.AddFont( “weapon_sawn_off_sg”, “CSKillIcons”,
SWEP.IconLetter, Color( 255, 80, 0, 255 ) )

end"

"SWEP.Base = “weaponcsbase”

SWEP.Spawnable = true
SWEP.AdminSpawnable = true

SWEP.ViewModel = “Models/weapons/v_shot_xm1011.mdl”
SWEP.WorldModel = “models/GTA IV/sawn_off.mdl”

SWEP.Weight = 5 SWEP.AutoSwitchTo = false SWEP.AutoSwitchFrom = false"
SWEP.Primary.Sound = Sound( “Weapon_AK47.Single” )
SWEP.Primary.Recoil = 1.5
SWEP.Primary.Damage = 40
SWEP.Primary.NumShots = 1
SWEP.Primary.Cone = 0.02
SWEP.Primary.ClipSize = 2
SWEP.Primary.Delay = 0.07
SWEP.Primary.DefaultClip = 2
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = “buckshot”

SWEP.Secondary.ClipSize = -1
SWEP.Secondary.DefaultClip = -1
SWEP.Secondary.Automatic = false
SWEP.Secondary.Ammo = “none”"

SWEP.IronSightsPos = Vector( 6.1, -7, 2.5 ) SWEP.IronSightsAng = Vector( 2.8, 0, 0 )"


(User was banned for this post ("utt" - garry))

When this is in your file are you keeping those quotation marks before the if’s, after the end’s, before the SWEP.Base, and after the SWEP.IronSightsPos?

Yes this is exactly like the one in the file

Take out a quotation mark:
on line 1 before if,
on line 6 after end,
on line 18 after end,
on line 20 before SWEP.Base,
on line 28 after false,
on line 43 after “none”,
and on line 45 after Vector( 2.8, 0, 0 ).

Thx I can spawn it now but it won’t fire

It fires for me, try raising the clip size above 2 so you can see it.

[lua]
if ( SERVER ) then
AddCSLuaFile( “shared.lua” )

SWEP.HoldType = “smg”

end

if ( CLIENT ) then
SWEP.PrintName = “Shawn off Shotgun”
SWEP.Author = “Gameguy214”
SWEP.Slot = 4
SWEP.SlotPos = 1
SWEP.IconLetter = “w”

killicon.AddFont( “weapon_sawn_off_sg”, “CSKillIcons”, SWEP.IconLetter, Color( 255, 80, 0, 255 ) )

end

SWEP.Base = “weapon_cs_base”

SWEP.Spawnable = true
SWEP.AdminSpawnable = true

SWEP.ViewModel = “Models/weapons/v_shot_xm1011.mdl”
SWEP.WorldModel = “models/GTA IV/sawn_off.mdl”

SWEP.Weight = 5
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false
SWEP.Primary.Sound = Sound( “Weapon_AK47.Single” )
SWEP.Primary.Recoil = 1.5
SWEP.Primary.Damage = 40
SWEP.Primary.NumShots = 1
SWEP.Primary.Cone = 0.02
SWEP.Primary.ClipSize = 45
SWEP.Primary.Delay = 0.07
SWEP.Primary.DefaultClip = 45
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = “buckshot”

SWEP.Secondary.ClipSize = -1
SWEP.Secondary.DefaultClip = -1
SWEP.Secondary.Automatic = false
SWEP.Secondary.Ammo = “none”

SWEP.IronSightsPos = Vector( 6.1, -7, 2.5 )
SWEP.IronSightsAng = Vector( 2.8, 0, 0 )
[/lua]

I also changed your hold-type from “smg1” to “smg” because smg1 was giving me an invalid hold-type.

smg1 is a hold type for realcs