precache_event
- Синтаксис
-
native precache_event(type, const Name[], any:...);
Переменная | Описание |
---|---|
type |
Event type |
Name |
Formatting rules, path to the event file |
... |
Variable number of formatting parameters |
- Описание
- Precaches an event file.
- Пометка
-
The event type should always be 1.
- Пометка
-
Contrary to the other precache_* natives, this can be used outside of the plugin_precache() forward, e.g. in plugin_init() or plugin_cfg(). A bug in some clients makes this necessary, as plugin_precache() is called before the mod has precached its own, default event files. This can cause the event table to be misaligned on the client, leading to visual and audio bugs that are hard to diagnose.
- Возвращает
- Unique cache id of the event