Strange Gamemode Error?

I was testing a gamemode for GMod 13, and this little gem popped up:


gamemodes/narrative/gamemode/init.lua:18: 'end' expected (to close 'function' at line 12) near 'elseif'
  1. unknown - gamemodes/narrative/gamemode/init.lua:0


While this was valid on my first attempt at testing it (It was a stupid elseif syntax error, ), I don’t even have a function on that line anymore. May I ask how I can fix this?

Gotta post your code, yo.

Nevermind. Absolute stupidity; I forgot SublimeText 2 doesn’t automatically save documents when you close it. Thank you.