AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Error with sound download (https://forums.alliedmods.net/showthread.php?t=204465)

Thomeeek 12-30-2012 14:17

Error with sound download
 
Can someone help me?

Error: server failed to transmit file 'funmenu/item_activated.wav

Here is the code:
PHP Code:

new const item_activation[] = { "funmenu/item_activated.wav" }

public 
plugin_precache()
{
precache_sound(item_activation)



rastafari 12-30-2012 15:00

Re: Error with sound download
 
Make sure that the sound is in the right place, in this example: "sound/funmenu/item_activated.wav"
If it's correct check if the server allows the clients to download from it. This means check the server.cfg for sv_allowdownload and set it to "1".

Thomeeek 12-30-2012 15:08

Re: Error with sound download
 
it is in right place: sound/funmenu/item_activated.wav

Also:

sv_allowdownload 1
sv_allowupload 1
sv_downloadurl "http://91.83.231.155/fast/cs1/"

YamiKaitou 12-30-2012 15:10

Re: Error with sound download
 
Quote:

Not Found

The requested URL /fast/cs1/sound/funmenu/item_activated.wav was not found on this server.

Thomeeek 12-30-2012 15:15

Re: Error with sound download
 
Oh. Thank you Sir. Little mistake :)

YamiKaitou 12-30-2012 15:18

Re: Error with sound download
 
Actually, no it isn't. The file exists as an MP3 file, not a WAV file. Are you sure you are precaching the correct file?

Thomeeek 12-30-2012 15:22

Re: Error with sound download
 
Yeah, now I got the right file precached and it is working fine :)


All times are GMT -4. The time now is 13:43.

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