Raised This Month: $ Target: $400
 0% 

About EngFunc_PrecacheSound


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-16-2011 , 12:58   Re: About EngFunc_PrecacheSound
Reply With Quote #6

Whatever EngFunc_PrecacheSound or precache_sound, both call the engine call pfnPrecacheSound.

Difference is precache_sound has to be used in plugin_precache() forward. Such natives are forced to be used into this forward. Forward called at the very spawn of the server.

plugin_init/cfg is called when server is activated, much more later after the precache, but it doesn't mean you can't precache there. At this time, you sill can precache things, server just being activated.

Since, EngFunc_PrecacheSound is not forced to be used in plugin_precache(), that's why you can use it in either plugin_init or plugin_cfg.
__________________
Arkshine 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:13.


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