View Single Post
IC3k1ng
Senior Member
Join Date: Mar 2023
Location: Argentina
Old 04-07-2023 , 01:40   Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
Reply With Quote #1020

Quote:
Originally Posted by fysiks View Post
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)
__________________


IC3k1ng is offline