Raised This Month: $ Target: $400
 0% 

Loading Song Advanced (Updated Thread)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
mullekurden
Member
Join Date: Apr 2008
Old 07-02-2008 , 04:19   Re: Loading Song Advanced (Updated Thread)
Reply With Quote #11

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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode