• ChatPrint error with STool
    4 replies, posted
I'm getting this error with ChatPrint in my STool: [code]weapons\gmod_tool\stools/npcproficiency.lua:41: attempt to call method 'ChatPrint' (a nil value) weapons\gmod_tool\stools/npcproficiency.lua:68: attempt to call method 'ChatPrint' (a nil value)[/code] How would I fix this? [url=http://pastebin.com/dab11f04][I]Paste Bin[/I][/url]
Never messed with STOOLs, but the only issue I can think of there is self.Owner isn't a valid entity. Doing print( self.Owner ) before you call ChatPrint.
[QUOTE=Entoros;18564721]Never messed with STOOLs, but the only issue I can think of there is self.Owner isn't a valid entity. Doing print( self.Owner ) before you call ChatPrint.[/QUOTE] Hmm, that returns [NULL Entity] But how would I get the player then?
Ummm... no clue. Sorry D:
self:GetOwner() should get the owner.
Sorry, you need to Log In to post a reply to this thread.