I’m new to LUA but have programmed in other languages before (such as Java and PHP). I’m having trouble trying to get the Katana working. I already updated some of the weapons to work with the latest GMod update but the Katana is giving me problems.
I’m getting the error “attempt to index local ‘self’ (a nil value)”. I’ve looked at other weapons and they seem to be able to use this method fine. Here’s my code (error is coming from line 207) http://pastebin.com/Vm9dxV2Y .
Would be much appreciated if you guys could help me on this one!
EDIT: Here’s a screenshot of the error too if it helps http://puu.sh/3I6VU.png