Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » 4.0 doesn't support some stuff that 3.4 did??
Re: 4.0 doesn't support some stuff that 3.4 did?? [message #468221 is a reply to message #468141] Wed, 30 May 2012 16:42 Go to previous messageGo to previous message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma:
Recruit
fix the registrant :


template <class T> class ChatCommandRegistrant : public ChatCommandList {
public:
	ChatCommandRegistrant(const char *Command,int NumParams) {
		char *Comm = newstr(Command);
		char *p = strtok(Comm,";");
		while (p) {
			ChatCommandClass *Temp = new T;
			Add_Chat_Command(Temp,p,NumParams);
			p = strtok(0,";");
		}
		delete[] Comm;
	}

};



could be this fixes your problem, could be it doesnt i dont know where things go wrong in your code if i dont see it


Also your plugin will compile but wont work as you placed your commandclass in ssgm instead of your plugin

You have to place them inside your own plugin otherwise it wont work


Owner of kambot TT server

kambot.freeforums.org

[Updated on: Wed, 30 May 2012 16:45]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Need help please
Next Topic: page poke system
Goto Forum:
  


Current Time: Tue Dec 03 15:40:22 MST 2024

Total time taken to generate the page: 0.00731 seconds