Quote:
Originally Posted by ConnorMcLeod
You musn't (don't have to ? w/e) pass 'sound/' in wav play cmd.
|
I've tried with and without /sound for .wav files, and it seems to work with both, so what is the difference ?
Quote:
Originally Posted by Arkshine
You should not register the event if no sounds were found from the parsing.
Also, I would suggest to format directly the sound with spk or mp3 play at parsing time before saving in the array, so you can use directly something like that :
Code:
public EventDeathMsg() { client_cmd( read_data( 2 ), "%a", ArrayGetStringHandle( g_aSounds, g_iTotalSounds == 1 ? 0 : random( g_iTotalSounds ) ) ); }
|
I'll update it once i have received an answer from Connor for the question above.
__________________