Raised This Month: $32 Target: $400
 8% 

Solved Emit sound problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DexonRL
Junior Member
Join Date: Jul 2020
Location: Israel
Old 08-11-2020 , 03:47   Emit sound problem
Reply With Quote #1

Hey modders, for some reason the emit sound code isnt working for me.

PHP Code:
public void OnPluginStart()
{
    
PrecacheSound("antijointeam.wav");
    
AddFileToDownloadsTable("sounds/antijointeam.wav");

Code:
EmitSoundToAll("sounds/antijointeam.wav");
Is there anything wrong?

Thanks for helping me out.

Last edited by DexonRL; 08-16-2020 at 02:27.
DexonRL is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 08-11-2020 , 08:24   Re: Emit sound problem
Reply With Quote #2

Shouldn't it be like this: ?
EmitSoundToAll("antijointeam.wav");

Also you can check if the file is correct. Open game console and type:
play antijointeam.wav
kadet.89 is offline
Send a message via Skype™ to kadet.89
Cruze
Veteran Member
Join Date: May 2017
Old 08-11-2020 , 13:11   Re: Emit sound problem
Reply With Quote #3

As kadet.89 mentioned + sound* not sounds
__________________
Taking paid private requests! Contact me
Cruze is offline
DexonRL
Junior Member
Join Date: Jul 2020
Location: Israel
Old 08-12-2020 , 07:49   Re: Emit sound problem
Reply With Quote #4

Quote:
Originally Posted by Cruze View Post
As kadet.89 mentioned + sound* not sounds
Now its giving me another error:
S_StartSound: Invalid sample rate (96000) for sound '*\jointeam\antijointeam.mp3'.

I tried to convert the sound sample rate in online sound editor, but its the same.

Last edited by DexonRL; 08-12-2020 at 07:50.
DexonRL is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 08-12-2020 , 10:38   Re: Emit sound problem
Reply With Quote #5

Quote:
Originally Posted by DexonRL View Post
Now its giving me another error:
S_StartSound: Invalid sample rate (96000) for sound '*\jointeam\antijointeam.mp3'.

I tried to convert the sound sample rate in online sound editor, but its the same.
It should be 42kHz as I remember
kadet.89 is offline
Send a message via Skype™ to kadet.89
Reply



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:24.


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