Need Help fixing a line of code Please!

I need help fixing this one line code. I cant find whats wrong with it.

timer.Simple(WELDTIME*(nocollidecount+weldcount), function() self.NoCollideEnts( self, v.ent,w.ent,0, 0,nocollidecount) end )


Whats the error?

All it says in console is
Timer Failed! [Simple][@addons/smart_welding/lua/weapons/gmod_tool/stools/smartwelder.lua (line 578)]
[ERROR] …art_welding/lua/weapons/gmod_tool/stools/smartwelder.lua:578: attempt to call field ‘NoCollideEnts’ (a nil value)

  1. unknown - …art_welding/lua/weapons/gmod_tool/stools/smartwelder.lua:578

self.NoCollideEnts() is nil. Meaning its not defined.

that code was oriinally in gmod 12 and i tried changing it to work on 13, thats all im asking. The original code in gmod 12 is

timer.Simple(WELDTIME*weldcount, self.WeldEnts, self, v.ent,self.props**.ent,0, 0, weldstrength, smartnocollide,weldcount)

[editline]20th December 2012[/editline]

So what exctly do I do… I am pretty new and a big noob at this

Try this:

timer.Simple(WELDTIME*(nocollidecount+weldcount), function() self:NoCollideEnts( self, v.ent,w.ent,0, 0,nocollidecount) end )

Thanks so much! It works. Check the tool out: