AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   SV_Startsound problem with emit_sound (https://forums.alliedmods.net/showthread.php?t=28417)

nightscreem 05-14-2006 08:51

SV_Startsound problem with emit_sound
 
i got a problem with emit sound
this is the error i get in console, compiling is fine
Quote:

SV_StartSound: ctf/TtakesCTflag.mp3 not precached (0)
SV_StartSound: ctf/TtakesCTflag.mp3 not precached (0)
SV_StartSound: ctf/TtakesCTflag.mp3 not precached (0)
SV_StartSound: ctf/TtakesCTflag.mp3 not precached (0)
SV_StartSound: ctf/TtakesCTflag.mp3 not precached (0)
SV_StartSound: ctf/TtakesCTflag.mp3 not precached (0)
SV_StartSound: ctf/TtakesCTflag.mp3 not precac
some pieces of my code
Code:
new CTcaptureTflag[] = "ctf/CTcaptureTflag.mp3" new TcaptureCTflag[] = "ctf/TcaptureCTflag.mp3" new CTdropTflag[] = "ctf/CTdropTflag.mp3" new TdropCTflag[] = "ctf/TdropCTflag.mp3" new CTflagBase[] = "ctf/CTflagBase.mp3" new TflagBase[] = "ctf/TflagBase.mp3" new CTtakeTflag[] = "ctf/CTtakesTflag.mp3" new TtakeCTflag[] = "ctf/TtakesCTflag.mp3"

Code:
public plugin_precache() {   precache_sound( "ctf/CTcaptureTflag.mp3" )   precache_sound( "ctf/TcaptureCTflag.mp3" )   precache_sound( "ctf/CTdropTflag.mp3" )   precache_sound( "ctf/TdropCTflag.mp3" )   precache_sound( "ctf/CTflagBase.mp3" )   precache_sound( "ctf/TflagBase.mp3" )   precache_sound( "ctf/CTtakeTflag.mp3" )   precache_sound( "ctf/TtakeCTflag.mp3" )   }
Code:
emit_sound(0, CHAN_VOICE, TdropCTflag, 1.0, ATTN_NORM, 1, PITCH_NORM)
i think that's enough you guys need
can you tell me what the problem is :?

[ --<-@ ] Black Rose 05-14-2006 10:11

new TtakeCTflag[] = "ctf/CTtakesCTflag.mp3"
new CTtakeTflag[] = "ctf/CTtakesTflag.mp3"

nightscreem 05-14-2006 11:08

that's not my problem
i get it with every sound
but thx

Cheap_Suit 05-14-2006 12:59

I think you cant emit an mp3. I myself tryed before with no luck.

v3x 05-14-2006 13:22

No, you can't. I remember JGHG saying this.

nightscreem 05-14-2006 14:08

still the same but just changed the extension
but i noticed i get
Code:

Missing RIFF/WAVE chunks
Missing RIFF/WAVE chunks
Missing RIFF/WAVE chunks
Missing RIFF/WAVE chunks
Missing RIFF/WAVE chunks
Missing RIFF/WAVE chunks
Missing RIFF/WAVE chunks
Missing RIFF/WAVE


[ --<-@ ] Black Rose 05-14-2006 14:58

did you just changed the extention or did you convert them to wav?
if you dont convert them i dun think they will work at all...

nightscreem 05-14-2006 15:15

k thx i'll convert them :D

VEN 05-15-2006 05:04

Just to let you know: you can't precache MP3 with precache_sound.

mahooo60 05-15-2006 08:25

if the mp3 converted to wave its not the same kb...60kb mp3 will be 600kb wave"biger",is that right?


All times are GMT -4. The time now is 16:33.

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