Precaching and playing sound from ini
I am trying to play a sound when connecting to the server, stealed much stuff from this plugin:
http://forums.alliedmods.net/showthread.php?p=152101 To what I came: PHP Code:
Quote:
|
Re: Precaching and playing sound from ini
So what's the problem ? :|
|
Re: Precaching and playing sound from ini
Doesn't play anything.
|
Re: Precaching and playing sound from ini
Learn to debug yourself man, print a message when the spk command is triggered along with the path and stuff, maybe you got something wrong there.
Also, play the sound manually in the console to make sure it can be played. |
Re: Precaching and playing sound from ini
PHP Code:
|
Re: Precaching and playing sound from ini
Correct me if I am wrong but you are reading file (configs/mod/connect_music.ini):
get_configsdir(configsdir, 199) format(configfile, 199, "%s/mod/connect_music.ini", configsdir) and then you say that you have something in "configs/mod/music.ini" Different files? Check also Exolent[jNr] code above. Useprecache_generic(songdir2) not precache_generic(songdir) |
Re: Precaching and playing sound from ini
Just use this one.
Music goes in the fallowing directory: sound/misc/loading/ Meaning it goes in the folder called: loading You may have to create the folders misc and than loading if you dont already have them. PHP Code:
|
Re: Precaching and playing sound from ini
Quote:
No .wav support. All sounds must be in same folder, so if wanted to use an existing sound, players must have to download it again in new directory. Bad method to copy string into sound list. |
Re: Precaching and playing sound from ini
Wow exactly, thanks.
However I get this: Quote:
"mysound.wav" When I try to play the sound like this, it works: "spk mod/mysound.wav" |
Re: Precaching and playing sound from ini
Remove quotes from around the sound file.
|
| All times are GMT -4. The time now is 00:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.