Raised This Month: $ Target: $400
 0% 

Precache sounds from file


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 04-08-2009 , 21:34   Re: Precache sounds from file
Reply With Quote #1

PHP Code:
if ( ( szText ] != ';' ) && (szText ] != '/' ) && file_exists szText ) ) 
        { 
            
g_szPrecached iCount++ ] = szText 
            log_amx 
"^"%s^" sound precached."szText
            precache_sound 
szText 
        } 
TheRadiance is offline
Send a message via ICQ to TheRadiance
FiFiX
Senior Member
Join Date: May 2008
Location: Poland
Old 04-09-2009 , 05:46   Re: Precache sounds from file
Reply With Quote #2

And the extensions?
FiFiX is offline
Send a message via Skype™ to FiFiX
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-09-2009 , 08:23   Re: Precache sounds from file
Reply With Quote #3

Why would you need to log "unknown extensions"? Just don't put anything in there that isn't an mp3 or wav.
__________________
fysiks is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 04-09-2009 , 08:26   Re: Precache sounds from file
Reply With Quote #4

try with this:
http://forums.alliedmods.net/showthread.php?p=228704
__________________
alan_el_more is offline
Reply



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 02:21.


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