I'm confused. Why would you do this:
PHP Code:
switch(szSound[strlen(szSound) - 1])
{
case 'v', 'V':
client_cmd(iVictim, "spk ^"sound/%s^"", szSound);
case '3':
client_cmd(iVictim, "mp3 play ^"%s^"", szSound);
}
and
Code:
; sound/misc/example.mp3^n^n; Be sure to write sound/ when the file is a .mp3^n
Why not just add the "sound/" in the mp3 situation just like you do in the wave situation? Then, you don't need to worry about putting wavs and mp3s in the .ini file differently.
EDIT: Just realized it was because of the precache_generic() BUT you could just add "sound/" when precaching mp3s. This would make it more "user friendly".
__________________