Quote:
Originally Posted by fysiks
You can't use "id" there because it doesn't exist in that scope. Why are you trying to change that? You need to leave it at 0 for this one. Basically, just leave that parameter alone, any changes with that parameter would likely require extensive changes.
Also, that section of code is for a countdown which means it was playing consecutive sounds that speak the numbers so if you replace it with a single sound, it will just repeat it several times which might be confusing.
You also need to precache the files with something like this:
PHP Code:
public plugin_precache()
{
precache_generic("path/to/sound/file.mp3")
}
|
Oh, i didn't know that. I was learning how to play a mp3 file at client and the code got that "id", so i copy it. My bad.
So how can i make it to play many sounds by order? (Like if countdown value is 5 seconds, then make the client play sound "5.mp3", later "4.mp3", and etc to finish at number 1)
__________________