Raised This Month: $ Target: $400
 0% 

hud is not displaying and sound is not playing...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 10-22-2006 , 13:05   Re: hud is not displaying and sound is not playing...
Reply With Quote #8

Quote:
Originally Posted by [ --<-@ ] Black Rose View Post
No. It's the same thing as client_cmd(0, "spk %s", g_szHeSound) only way more complicated.

you SHOULD use client_cmd(0, "spk ^"%s^"", g_szHeSound) like Zenith said.

the resuft with X: 0.9 and y: 0.9 is...
When I posted that, I showed him the proper way to use his formatted string with the client cmd, since he had
Code:
client_cmd(0, Str)
which is not valid. Please look carefully next time.

You don't need to use
Code:
^"%s^""
since he is already defining the sound as
Code:
new g_szHeSound[] = "misc/nade_kill.wav"
with quotes, so the entire string will be passed to the function, ie.
Code:
client_cmd(id, "spk %s", g_szHeSound)
is the same as using
Code:
client_cmd(id, "spk misc/nade_kill")
He should remove the .wav part from g_szHeSound so it should look like this
Code:
new g_szHeSound[] = "misc/nade_kill"

Last edited by organizedKaoS; 10-22-2006 at 13:13.
organizedKaoS is offline
 



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 04:46.


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