コード例 #1
0
int CHudSayText :: MsgFunc_SayText( const char *pszName, int iSize, void *pbuf )
{
	BEGIN_READ( pbuf, iSize );

	int client_index = READ_BYTE();		// the client who spoke the message
	SayTextPrint( READ_STRING(), iSize - 1,  client_index );
	
	return 1;
}
コード例 #2
0
ファイル: CHudSayText.cpp プロジェクト: swmpdg/HLEnhanced
int CHudSayText :: MsgFunc_SayText( const char *pszName, int iSize, void *pbuf )
{
	CBufferReader reader( pbuf, iSize );

	int client_index = reader.ReadByte();		// the client who spoke the message
	SayTextPrint( reader.ReadString(), iSize - 1,  client_index );
	
	return 1;
}