Someone help me out with that error?

I got that:

[ERROR] addons/the_boos_swep_packet/lua/entities/random_test_sheet/init.lua:22: function arguments expected near ‘=’

Code:




AddCSLuaFile( "cl_init.lua" ) 
AddCSLuaFile( "shared.lua" ) 

include('shared.lua')


function ENT:Initialize()

self:SetModel( "models/props_combine/headcrabcannister01a.mdl" )
self:PhysicsInit( SOLID_VPHYSICS ) 
self:SetMoveType( MOVETYPE_VPHYSICS ) 
self:SetSolid( SOLID_VPHYSICS ) 
local phys = self:GetPhysicsObject()
if (phys:IsValid()) then
phys:Wake()
end
end

function ENT:Use( activator, caller )

local ent1 = ents.Create("prop_physics")
ent1:SetModel = ("models/props_junk/harpoon002a.mdl")
ent1:SetAngle(self:Angles)
ent1:ApplyForceCenter( 100 )
ent1:AddCallBack( "PhysicsCollide " , util.BlastDamage (self:Owner , self:Owner , enti1:Pos ) )
ent1:Remove
self:Remove 


end

function ENT:Think()

end



Should be


ent1:SetModel("models/props_junk/harpoon002a.mdl")

And now i get

[ERROR] addons/the_boos_swep_packet/lua/entities/random_test_sheet/init.lua:23: function arguments expected near ‘)’

  1. unknown - addons/the_boos_swep_packet/lua/entities/random_test_sheet/init.lua:0



AddCSLuaFile( "cl_init.lua" ) 
AddCSLuaFile( "shared.lua" ) 

include('shared.lua')


function ENT:Initialize()

self:SetModel( "models/props_combine/headcrabcannister01a.mdl" )
self:PhysicsInit( SOLID_VPHYSICS ) 
self:SetMoveType( MOVETYPE_VPHYSICS ) 
self:SetSolid( SOLID_VPHYSICS ) 
local phys = self:GetPhysicsObject()
if (phys:IsValid()) then
phys:Wake()
end
end

function ENT:Use( activator, caller )

local ent1 = ents.Create("prop_physics")
ent1:SetModel("models/props_junk/harpoon002a.mdl")
ent1:SetAngle(self:Angles)
ent1:ApplyForceCenter( 100 )
ent1:AddCallBack( "PhysicsCollide " , util.BlastDamage (self:Owner , self:Owner , enti1:Pos ) )
ent1:Remove
self:Remove 


end

function ENT:Think()

end






It’s SetAngles

And this:


ent1:AddCallBack( "PhysicsCollide " , util.BlastDamage (self:Owner , self:Owner , enti1:Pos ) )

is most likely:


ent1:AddCallBack( "PhysicsCollide " , util.BlastDamage (self.Owner , self.Owner , enti1:GetPos( ) ) )

And this
[lua]
ent1:Remove
self:Remove
[/lua]

Is this

[lua]
ent1:Remove()
self:Remove()
[/lua]