Raised This Month: $ Target: $400
 0% 

Download the sounds if they do not have


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Pattinho
Member
Join Date: Dec 2007
Old 05-10-2012 , 10:00   Re: Download the sounds if they do not have
Reply With Quote #3

Well at first you should change the Random num, because it is between 0 and 1 instead of 1 and 2.

and its better if you use this here.

PHP Code:
 public plugin_precache()
{
    for(new 
0MaxSoundsi++)
    {
        if(!
file_exists(soundlist[i])){
                new 
path[75]
                        
format(path,74,"%s.mp3",soundlist[i])
                     
precache_sound(path)
               }
    }
    
    return 
PLUGIN_CONTINUE

Its because you can't set in precache_sound "%s"

Last edited by Pattinho; 05-10-2012 at 10:00.
Pattinho 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 00:19.


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