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 |
|
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
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
[Updated on: Wed, 30 May 2012 17:35] Report message to a moderator
|
|
|