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

sound problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hopkync
Junior Member
Join Date: Aug 2010
Location: Czech Republic
Old 03-15-2011 , 16:06   sound problem
Reply With Quote #1

Hi all,
I have problem with
PHP Code:
EmitSoundToClient(client"misc/udead.wav"); 
Windows server play the sound well, but linux not. Any idea how to fix it?
hopkync is offline
Sil3nt Pr0digy
Member
Join Date: Mar 2011
Old 03-15-2011 , 20:50   Re: sound problem
Reply With Quote #2

Quote:
Originally Posted by hopkync View Post
Hi all,
I have problem with
PHP Code:
EmitSoundToClient(client"misc/udead.wav"); 
Windows server play the sound well, but linux not. Any idea how to fix it?
Where is the file stored on the linux box?
Sil3nt Pr0digy is offline
hopkync
Junior Member
Join Date: Aug 2010
Location: Czech Republic
Old 03-16-2011 , 06:32   Re: sound problem
Reply With Quote #3

in same folder like in windows ../cstrike/sound/misc/udead.wav

EDIT:
give some more data

PHP Code:
#define MAX_LEN 256

public OnMapStart() {
                     
decl String:dead_snd[MAX_LEN];
                     
Format(dead_sndsizeof(dead_snd), "sound/misc/udead.wav");
                     if(
FileExists(dead_snd)) {
                                               
AddFileToDownloadsTable(dead_snd);
                                               
PrecacheSound("misc/udead.wav"true);
                                              }
                    }
public 
Action:Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast) {
                                                                                        (
GetConVarBool(ds_enable)) {
                                                                                                                    
EmitSoundToClient(client"misc/udead.wav");
                                                                                                                   }
                                                                                       } 

Last edited by hopkync; 03-16-2011 at 17:02.
hopkync is offline
hopkync
Junior Member
Join Date: Aug 2010
Location: Czech Republic
Old 03-19-2011 , 19:54   Re: sound problem
Reply With Quote #4

Problem has been updated! I run this plugin on public linux server and some clients can hear sound randomly. Always approximately once by 15 rounds. Itīs strangely. Why not play the sound every time?
hopkync is offline
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 05:38.


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