A little help please :)

hi people!
im trying to learn a bit of lua scripting so i’ve tried to make a “npc control swep”
but when i start the game i get this error : :64:’<eof>’ expected near ‘end’

The file :


if( SERVER ) then
	AddCSLuaFile( "shared.lua" );
end

if( CLIENT ) then
	SWEP.PrintName = "Strategy SWEP";
	SWEP.Slot = 1;
	SWEP.SlotPos = 0;
	SWEP.DrawAmmo = false;
	SWEP.DrawCrosshair = true;
end

SWEP.Author			= "Tokio"
SWEP.Instructions	= "Left = Command  right = Select"
SWEP.Contact		= ""
SWEP.Purpose		= ""
SWEP.Category		= "Strategy SWEP";

SWEP.ViewModelFOV	= 62
SWEP.ViewModelFlip	= false

SWEP.Spawnable			= false
SWEP.AdminSpawnable		= true

SWEP.ViewModel      = "models/weapons/v_hands.mdl"
SWEP.WorldModel   = "models/weapons/w_camphone.mdl"

-------------Primary Fire Attributes----------------------------------------
SWEP.Primary.Sound			= ""	
SWEP.Primary.Damage			= 0		
SWEP.Primary.NumShots		= 0		
SWEP.Primary.Recoil			= 0		
SWEP.Primary.Cone			= 0		
SWEP.Primary.Delay			= 0		
SWEP.Primary.ClipSize		= -1	
SWEP.Primary.DefaultClip	= -1		
SWEP.Primary.Tracer			= 0		
SWEP.Primary.Force			= 0		
SWEP.Primary.TakeAmmoPerBullet = false	
SWEP.Primary.Automatic		= false	
SWEP.Primary.Ammo			= "none"

function SWEP:PrimaryAttack()

	RunConsoleCommand( "npc_go" )
end

-------------Secondary Fire Attributes-------------------------------------
SWEP.Secondary.Delay		= 0.5
SWEP.Secondary.Recoil		= 0
SWEP.Secondary.Damage		= 0
SWEP.Secondary.NumShots		= 1
SWEP.Secondary.Cone			= 0
SWEP.Secondary.ClipSize		= -1
SWEP.Secondary.DefaultClip	= -1
SWEP.Secondary.Automatic   	= false
SWEP.Secondary.Ammo         = "none"

function SWEP:SecondaryAttack() // conceal yourself

	RunConsoleCommand( "npc_select" )
end

end


(User was banned for this post ("Wrong section" - mahalis))

You have a “end” to much in the last function.

thanx mate :smiley:

Reading the errors helps