View Single Post
mullekurden
Member
Join Date: Apr 2008
Old 07-02-2008 , 04:19   Re: Loading Song Advanced (Updated Thread)
Reply With Quote #411

i know it was a time ago peoples wrote on this theard but if anyone sees it please help me...

i just tried loadingsoundadvanced and iv'e got this error:
Missing RIFF/WAVE chunk

first when im joining the server i need to download the sound but i cant here it after that. not my friends either? i have mp3_volume 3.0

what to do ?

i think its something wrong with the .sma because it says that i need to but the .mp3 in "sound/sound/misc" not "sound/misc"

heres the code...

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define MAX_SONGS    10

public plugin_init() { 
    
register_plugin("loading with music","1.0","eFrigid"
    return 
PLUGIN_CONTINUE 


new 
configsdir[200]
new 
configfile[200]
new 
song[MAX_SONGS][64]
new 
songdir[MAX_SONGS][64]
new 
bool:precached[MAX_SONGS]


public 
plugin_precache()
    {
    
get_configsdir(configsdir,199)
    
format(configfile,199,"%s/loadingsongs.ini",configsdir)
    new 
trash
    
for(new i=0;i<MAX_SONGS;i++)
        {
        
precached[i]=false
        read_file
(configfile,i,song[i],63,trash)
        if(!
equali(song[i][4],""))
            {
            
precached[i]=true
            format
(songdir[i],63,"misc/%s",song[i])
            
precache_sound(songdir[i])
        }
    }
}

public 
client_connect(id) { 
    
    for(new 
i=0;i<MAX_SONGS;i++)
        
client_cmd(id,"play sound/misc/%s",songdir[i])
    return 
PLUGIN_HANDLED

__________________

mullekurden is offline