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

It only give's me one error now.

Says something about !railgun;!rail

no instance of constructor "ChatCommandRegistrant<T>::ChatCommandRegistrant [with T=railgun1ChatCommand]" matches the argument list c:\users\distrbd21\documents\visual studio 2010\projects\source\weapons\weapons.cpp 41


class railgun1ChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {
		GameObject *obj = Get_GameObj(ID);
		int cost = 1200;
		const char *powerup = "POW_Railgun_Player";


		if (Commands->Get_Money(Get_GameObj(ID)) < cost)
		{
            Commands->Give_PowerUp(obj, powerup, 1);
            Commands->Give_Money(obj, static_cast<float>(-cost), false);
			
		}
	}
};

ChatCommandRegistrant<railgun1ChatCommand> railgun1ChatCommandReg("!railgun;!rail",0);


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

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

Cookie Jar

Suicide
 
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: Fri Nov 01 22:49:29 MST 2024

Total time taken to generate the page: 0.00810 seconds