View Single Post
Re: Assist Needed, couple last pieces of info needed...
Old
  (#16)
BAStumm
Member
 
BAStumm's Avatar
 
Status: Offline
Posts: 138
Join Date: Jan 2004
Location: Spokane, WA USA
Default Re: Assist Needed, couple last pieces of info needed... - 10-02-2004

ok can someone do a sanity check on me? I've been down this road a couple times before but tonight I called on Alfred Reynolds of valve to help me out... He pointed me to this...

Code:
			  PF_MessageBegin_I( MSG_ONE, RegUserMsg( "SayText", -1 ), NULL, &sv.edicts[j+1] );
					  PF_WriteByte_I( 0 );
					  PF_WriteString_I( text );
			  PF_MessageEnd_I();
To which I've been testing with:

Code:
void pfnWriteString( const char * sz )
{
		if (gpGlobals->deathmatch)
		{
				fp=fopen("phpua_log.txt","a");
				fprintf(fp,"pfnWriteString: %s\n",sz);
				fclose(fp);
Im logging all the damn WriteString messages to a file (along with pfnMessageBegin). Im getting lots of SayText messages... None are server say messages... Yes I opened the console and did some testing "say test" but it doesn't show in my log (phpua_log.txt). Whats the deal with the _I in his code? Im guessing thats just differences between valve and mm code or am I missing something.

Usually I can sort this stuff but I just can't sort this. I've been after this data for almost 2 months now and have been down this road a few times already before tonight and tried this road again tonight after alfreds response but still no luck? What am I missing?






  
Reply With Quote