hud is not displaying and sound is not playing...
could someone help me with this the hud msg is not showing up and no sound is playing..
Code:
|
Re: hud is not displaying and sound is not playing...
Use:
play %s not spk %s If that does still not work, try removing the ".wav". If there is still no sound there is a Problem with the .wav it self. 0.85 or above is probably showing the Message out of screen. (under Bottom) Use values between 0.01 and 0.8 for Y. For X use small Values or -1. (Note: 0.5 != -1, -1 will Center the Message on that axis, 0.5 will make Message start at the Center of that axis.) :up: |
Re: hud is not displaying and sound is not playing...
1) Using the spk command is perfectly ok, but try doing it this way.
Code:
|
Re: hud is not displaying and sound is not playing...
spk is not "perfectly ok" because it will print you an error message.
|
Re: hud is not displaying and sound is not playing...
Only in console, which really doesn't do anything.
|
Re: hud is not displaying and sound is not playing...
Quote:
The audio format must be exactly what is accepted by the hl engine. If your using spk and it gives you an error message....check your sound file and learn to alter it accordingly. And then this: Code:
Should work better like this Code:
|
Re: hud is not displaying and sound is not playing...
ok guys will do and ill tell u if it works
|
Re: hud is not displaying and sound is not playing...
You should change
Code:
if(get_pcvar_num(enabled) == 1)Code:
if(get_pcvar_num(enabled)) |
Re: hud is not displaying and sound is not playing...
It does matter, if the value you are checking is used with different values other than zero.
The second way you posted is acutally equal to this: Code:
It will work in this case, but I just wanted to clarify that. |
Re: hud is not displaying and sound is not playing...
Quote:
you SHOULD use client_cmd(0, "spk ^"%s^"", g_szHeSound) like Zenith said. the resuft with X: 0.9 and y: 0.9 is... http://roseclan.dajoob.com/images/hudmsg.jpg |
| All times are GMT -4. The time now is 04:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.