SSGM plugin crashes when trying to add a chat command [message #449019] |
Wed, 22 June 2011 14:14 |
iRANian
Messages: 4308 Registered: April 2011
Karma:
|
General (4 Stars) |
|
|
I'm working on a plugin for which I added a chat command. The chat command merely executes a Console_Input() statement. I copy-pasted the exact stuff from the SSGM Example Plugin Source, I can load up the server fine but as soon as I type something in-game with the first character being '!' the server crashes. I got 5 plugins loaded and this is the fifth one. If I configure it to only load this WIP plugin it'll will crash when the console outputs 'Load 0% Complete'. If I remove the ChatCommand blabla Reg stuff it works fine.
Are there any known issues with adding chat commands via the SSGM Plugin system? Here's the very WIP and messy code I got now:
plugin.cpp:
http://pastebin.com/8PpAS3cB
plugin.h:
http://pastebin.com/iSwn8WVY
Long time and well respected Renegade community member, programmer, modder and tester.
Scripts 4.0 private beta tester since May 2011.
My Renegade server plugins releases
[Updated on: Wed, 22 June 2011 14:15] Report message to a moderator
|
|
|