Quote:
Originally Posted by [ --<-@ ] Black Rose
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
which is not valid. Please look carefully next time.
You don't need to use
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"