Raised This Month: $ Target: $400
 0% 

sound wont precache


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 01-02-2008 , 08:47   sound wont precache
Reply With Quote #1

Making my music menu it did work to play .wav but now it dont and mp3 works fine.
y i got the files in right folder.
i brught my pall in and it didnt precache.
and i cant understand why.
Attached Files
File Type: sma Get Plugin or Get Source (music_menu.sma - 446 views - 2.2 KB)

Last edited by fxfighter; 01-02-2008 at 14:04.
fxfighter is offline
Send a message via MSN to fxfighter
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-02-2008 , 09:42   Re: sound wont precache
Reply With Quote #2

read_config() should be called in plugin_precache(), just before precaching.

Why ? Because plugin_precache() is called before plugin_init(). So you try to precache some sounds which they didn't retrieve yet.
__________________

Last edited by Arkshine; 01-02-2008 at 09:46.
Arkshine is offline
Old 01-02-2008, 09:50
fxfighter
This message has been deleted by fxfighter. Reason: gfaw
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 11:07.


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