Hello Master.
PHP Code:
//=========================================================
// SoundPointerForIndex - returns a pointer to the instance
// of CSound at index's position in the sound pool.
//=========================================================
CSound* CSoundEnt::SoundPointerForIndex( int iIndex )
{
if ( !g_pSoundEnt )
{
return NULL;
}
if ( iIndex > ( MAX_WORLD_SOUNDS_MP - 1 ) )
{
Msg( "SoundPointerForIndex() - Index too large!\n" );
return NULL;
}
if ( iIndex < 0 )
{
Msg( "SoundPointerForIndex() - Index < 0!\n" );
return NULL;
}
return &g_pSoundEnt->m_SoundPool[ iIndex ];
}
I don't really know what wrong I never got this message before but maybe this helps you.
I guess there are to much world sounds.
Regards Benni.
__________________