Raised This Month: $18 Target: $400
 4% 

emit_sound not playing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 06-18-2024 , 10:24   emit_sound not playing
Reply With Quote #1

Hello, my first emit sound for JACKPOT is not playing, but for WIN it does, the wav file is fine, played it ingame with "play" in console and it worked, but not with this plugin, anyone knows how to fix it?

PHP Code:
                if (iPrize == 500)
                {
                    
emit_sound(iEntCHAN_STATICSOUND_SLOTMACHINE_JACKPOT1.0ATTN_IDLE0PITCH_NORM)
                    
ExecuteForward(g_fwdWiniReturniPlayeriPrize)
                }

                else if (
iPrize >= 0)
                {
                    
emit_sound(iEntCHAN_STATICSOUND_SLOTMACHINE_WIN1.0ATTN_IDLE0PITCH_NORM)
                    
ExecuteForward(g_fwdWiniReturniPlayeriPrize)
                } 

Last edited by HowToRuski; 06-18-2024 at 10:24.
HowToRuski is offline
Old 06-18-2024, 10:48
v120kaaimcfg
This message has been deleted by v120kaaimcfg.
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 06-18-2024 , 11:15   Re: emit_sound not playing
Reply With Quote #2

Quote:
Originally Posted by v120kaaimcfg View Post
Are you sure the file's precached properly?
Are you sure the path is correct?
Does the .wav file have these settings?:
- Bit resolution: 16 Bit
- Sampling rate: 22050 Hz
- Audio channels: mono
Have you tried using a different .wav file that you're 100% sure works?
Have you tried using a different channel?
Thanks, used these settings and worked!
HowToRuski 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 13:34.


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