Raised This Month: $12 Target: $400
 3% 

Trouble with emit_sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
enjoi.
Veteran Member
Join Date: Mar 2011
Old 02-16-2019 , 19:01   Trouble with emit_sound
Reply With Quote #1

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.
__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]
enjoi. is offline
PartialCloning
Senior Member
Join Date: Dec 2015
Old 02-16-2019 , 19:09   Re: Trouble with emit_sound
Reply With Quote #2

Make sure your wav file is using the right wav format.
PartialCloning is offline
enjoi.
Veteran Member
Join Date: Mar 2011
Old 02-16-2019 , 20:13   Re: Trouble with emit_sound
Reply With Quote #3

Quote:
Originally Posted by PartialCloning View Post
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.
__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]

Last edited by enjoi.; 02-16-2019 at 21:04.
enjoi. is offline
Old 02-16-2019, 20:17
enjoi.
This message has been deleted by enjoi..
enjoi.
Veteran Member
Join Date: Mar 2011
Old 02-17-2019 , 03:50   Re: Trouble with emit_sound
Reply With Quote #4

I figured the format and everything out. Thanks.
__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]
enjoi. is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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