Ahh, it is I who lead you down the garden path. PF_WriteString_I doesn't ever go through MetaMod (it stays inside the engine) so you can't intercept it. Um, I don't think there is a good solution. Perhaps you could use the logmod method of intercepting stdout and parsing all that text, or try using logaddress_add and parsing the udp packets you send to yourself.
- Alfred > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Brian A. Stumm > Sent: Monday, February 09, 2004 8:27 PM > To: [EMAIL PROTECTED] > Subject: Re: [hlcoders] Server say (chat) messages > > > apparently I am missing something. I've been after this data > for nearly 2 > months now and been down the pfnWriteString road before with > no luck. But > since alfred pointed me here again I had another go, still no luck. > > If I'm allowed may I call in a favor? > > Shouldn't this at least stuff the server say message into my > file? What am > I missing here? > > > [CODE] > void pfnWriteString( const char * sz ) > { > if (gpGlobals->deathmatch) > { > > fp=fopen("phpua_log.txt","a"); > fprintf(fp,"pfnWriteString: %s\n",sz); > fclose(fp); > > 8<---SNIP--- > [/CODE] > > > Alfred suggested: > > [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(); > [/CODE] > > is WriteString_I different? I figured it as a difference > between MM and > SDK. What am I missing? > > for what its worth i AM seeing other WriteString messages. Im > also logging > pfnMessageBegin to that file and seeing other SayText > messages in there > too. Im pulling my hair out here. Surely I'm missing the obvious... > > ARGGGG HELP! > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list > archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

