Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Other Products » ssgm dde hook problem
ssgm dde hook problem [message #307937] Fri, 04 January 2008 21:17 Go to previous message
neofmat is currently offline  neofmat
Messages: 42
Registered: February 2005
Karma:
Recruit
Hello all,

I'm trying to run the example plugin via vs 2005. Everything works fine but the following function is not being called. I like to hide the custom chat hook commands from being passed to console. Anyone encountered that error ? I thought the example would work on its own without any modification :\

(ssgm_version.ini)
[Version]
SSGM=2.0.2
Scripts=3.4.1
BHS=3.4


//Hook into SSGM's DDE channel.
//Return false to stop it from being passed to the console.
DLLEXPORT bool SSGM_DDE_Hook(const char *DDE) {
	printf("SSGM_DDE_Hook called %s\n",DDE);
	TokenClass Text(DDE);
	if (Text[1] == "test") {
		printf("\"%s\" command called with parameters: \"%s\"\n",Text[1].c_str(),Text(2).c_str());
		return false;
	}
	return true;
}


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: BR: IP Bot messages in console
Next Topic: FDS Status Reporter Plugin doesnt work
Goto Forum:
  


Current Time: Tue Nov 26 23:38:43 MST 2024

Total time taken to generate the page: 0.01527 seconds