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 #468223 is a reply to message #468221] Wed, 30 May 2012 17:31 Go to previous messageGo to previous message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma:
Colonel

robbyke wrote on Wed, 30 May 2012 18:42

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


I did place it in my own plugin after talking to you, I get no other error's but that one.

and I get this error now.
c:\users\distrbd21\documents\visual studio 2010\projects\source\weapons\WeapChatClass.h(37): error C2504: 'ChatCommandList' : base class undefined
2>          Weapons.cpp(41) : see reference to class template instantiation 'ChatCommandRegistrant<T>' being compiled
2>          with
2>          [
2>              T=railgun1ChatCommand
2>          ]



Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide

[Updated on: Wed, 30 May 2012 17:35]

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: Mon Dec 02 20:51:44 MST 2024

Total time taken to generate the page: 0.00816 seconds