how do i add ID in the Event_OnReload?
Code:
public Event_OnReload ( const i_Ent )
{
if ( UTIL_IsWeaponReloading ( pev ( i_Ent , pev_owner ), i_Ent ) && get_gametime() > g_NextReloadSound[id] )
{
emit_sound(id, CHAN_VOICE, SoundList[ random_num( 0, sizeof SoundList - 1 ) ], 1.0, ATTN_NORM, 0, PITCH_NORM) //id?
g_NextReloadSound[id] = get_gametime() + 5.0
}
}
but that failed to compile..and one more what's the diff CHAN_AUTO with CHAN_STATIC?