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

Quote:
Originally Posted by fysiks View Post
Yes, it is possible. You would need to add code to precache your custom sounds and then replace the client_cmd() that plays the sounds to instead play your custom sounds.
Thank you, i found the code but im getting many errors, can you help me with it? (Line 4894/4895):

PHP Code:
        // audio countdown
        
if( !( get_pcvar_numcvar_soundsMute ) & SOUND_COUNTDOWN ) )
        {
            new const 
contador[] = "sound/5united/contador.mp3";
            
client_cmd(id"mp3 play %s"contador);
        }
    } 
It says me this:

Quote:
plugin.sma(4844) : error 001: expected token: ";", but found "-identifier-"
plugin.sma(4844) : error 017: undefined symbol "id"
plugin.sma(4844) : warning 215: expression has no effect
plugin.sma(4844) : warning 215: expression has no effect
plugin.sma(4844) : error 001: expected token: ";", but found ")"
plugin.sma(4844) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.
I don't know how to define id because im new at this type of coding, so i hope that you can help me.
You can look at the SMA file from the plugin to edit it and then send me how to define it at the code. It would help me a lot.
__________________


IC3k1ng is offline