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: 0
|
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
|
|
|
|
Re: SSGM plugin crashes when trying to add a chat command [message #449039 is a reply to message #449019] |
Thu, 23 June 2011 08:37 |
iRANian
Messages: 4308 Registered: April 2011
Karma: 0
|
General (4 Stars) |
|
|
Nope, it's stock SSGM from the BC site I guess. People have suggested compiling the example plugin and seeing if it works but I don't understand why it isn't working as the #includes are the same and I just pasted the example ChatCommand code crap. It's quite frustrating.
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
|
|
|