Raised This Month: $ Target: $400
 0% 

Issue with precache sound


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-09-2011 , 01:06   Issue with precache sound
Reply With Quote #1

For some reason my games telling me it cant precache the sounds
There on the server and fast dl they download to the client but they dont play...

PHP Code:
new const g_medic_calls[][] =
{
"xtrememedic/medic_call1.wav",
"xtrememedic/medic_call2.wav",
"xtrememedic/medic_call3.wav",
"xtrememedic/medic_call4.wav"
};

new const 
g_medic_done[] = "xtrememedic/medic_done.wav";
new const 
g_medic_heal[] = "xtrememedic/medic_healing.wav";

public 
plugin_precache()
{
for(new 
0sizeof(g_medic_calls); i++)
{
precache_sound(g_medic_calls[i]);
}

precache_sound(g_medic_done);
precache_sound(g_medic_heal);
}

emit_sound(idCHAN_ITEMg_medic_heal1.0ATTN_NORM0PITCH_NORM);
emit_sound(idCHAN_ITEMg_medic_calls[random(sizeof(g_medic_calls))], 1.0ATTN_NORM0PITCH_NORM);
emit_sound(idCHAN_ITEMg_medic_done1.0ATTN_NORM0PITCH_NORM); 
There ya go... how they are delcared, precached, and used

I dont see a damn thing wrong with them.


EDIT : No idea wtf was going on... but fixed now

Last edited by Arkshine; 08-09-2011 at 04:59.
Doc-Holiday 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 03:29.


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