View Single Post
chrisb
Junior Member
Join Date: Feb 2009
Old 02-17-2009 , 12:08   Re: Connect Sound (v1.2)
Reply With Quote #22

Hi karlos,

i am sry it does not work.
I think u haven't the same version like on page one.

U said change
Code:
format(temp, 127, "sound/%s.wav", soundlist[a])
if ( file_exists(temp) )
{
    format(soundfile, 127, "%s.wav", soundlist[a])
    precache_sound(soundfile)
}
but orignal version is

Code:
 
        format(temp,127,"sound/%s.wav", soundlist[a])
        if ( file_exists(temp) ){
            new soundfile[128]
            format(soundfile,127,"%s.wav", soundlist[a])
            precache_sound( soundfile )
        }
When I start to compile, i get a lot of errors.
I tried to figure it out, but my amxx coding knowledge is not enough.

The other example has a problem with spaces.
Code:
client_cmd(id, "mp3 play ^"%s^"",soundlist[i])
There were one to much behind soundlist.

Greets chris
chrisb is offline