AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Trouble with emit_sound (https://forums.alliedmods.net/showthread.php?t=314393)

enjoi. 02-16-2019 19:01

Trouble with emit_sound
 
I am using the source code: https://forums.alliedmods.net/showthread.php?t=63165

I am trying to change the sound that plays..

"emit_sound(id, CHAN_AUTO, "weapons/boltup.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM);"

I changed it to..

"emit_sound(id, CHAN_AUTO, "newafm/ball_catch.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM);

but nothing plays now.

I also updated the precache sound.

Any help? I am a beginner with code.

PartialCloning 02-16-2019 19:09

Re: Trouble with emit_sound
 
Make sure your wav file is using the right wav format.

enjoi. 02-16-2019 20:13

Re: Trouble with emit_sound
 
Quote:

Originally Posted by PartialCloning (Post 2639956)
Make sure your wav file is using the right wav format.

What is the correct wav format and how? I was using some online converter. Any free program? I also need mp3.

enjoi. 02-17-2019 03:50

Re: Trouble with emit_sound
 
I figured the format and everything out. Thanks.


All times are GMT -4. The time now is 12:12.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.