Entity wont spawn

Hey guys, i’m making an ammogiver-entity for my gamemode, but I ran into a little error…

entities/sent_ammogiver/init.lua:19: ‘<eof>’ expected near ‘end’
Folder = entities/sent_ammogiver
Couldn’t register Scripted Entity sent_ammogiver - the Type field is empty!

Its in blue text. Heres my init.lua:
[lua]
AddCSLuaFile( “cl_init.lua” )
AddCSLuaFile( “shared.lua” )
include( ‘shared.lua’ )

function ENT:SpawnFunction( ply, tr )

if ( !tr.Hit ) then return end

local SpawnPos = tr.HitPos + tr.HitNormal * 16

local ent = ents.Create( "sent_ammogiver" )
	ent:SetPos( SpawnPos )
ent:Spawn()
ent:Activate()

return end

end

function ENT:Initialize()

self.Entity:SetModel( "models/Combine_Helicopter/helicopter_bomb01.mdl" )

function ENT:Touch( ply )
if ( ply:IsValid() and ply:IsPlayer() ) then
Player:GiveAmmo(100,“smg1”);
Player:GiveAmmo(100,“AR2”);
Player:GiveAmmo(100,“AlyxGun”);
Player:GiveAmmo(100,“Pistol”);
Player:GiveAmmo(100,“357”);
Player:GiveAmmo(100,“XBowBolt”);
Player:GiveAmmo(100,“Buckshot”);
Player:GiveAmmo(100,“RPG_Round”);
Player:GiveAmmo(100,“Grenade”);

end [/lua]

You are missing an end for the if statement in the ENT.Touch function.

It didnt work, same error: this is what I got now:

[lua]
AddCSLuaFile( “cl_init.lua” )
AddCSLuaFile( “shared.lua” )
include( ‘shared.lua’ )

function ENT:SpawnFunction( ply, tr )

local SpawnPos = tr.HitPos + tr.HitNormal * 16

local ent = ents.Create( "sent_ammogiver" )
	ent:SetPos( SpawnPos )
ent:Spawn()
ent:Activate()

end

end

function ENT:Initialize()

self.Entity:SetModel( "models/Combine_Helicopter/helicopter_bomb01.mdl" )

end

function ENT:Touch( ply )
if ( ply:IsValid() and ply:IsPlayer() ) then
Player:GiveAmmo(100,“smg1”);
Player:GiveAmmo(100,“AR2”);
Player:GiveAmmo(100,“AlyxGun”);
Player:GiveAmmo(100,“Pistol”);
Player:GiveAmmo(100,“357”);
Player:GiveAmmo(100,“XBowBolt”);
Player:GiveAmmo(100,“Buckshot”);
Player:GiveAmmo(100,“RPG_Round”);
Player:GiveAmmo(100,“Grenade”);

end

end
[/lua]

…And you have an end too much in ENT:SpawnFunction()

-snip-

Finally, it works, thanks