![]() |
Показать все 6 сообщений этой темы на одной странице |
HLFX.Ru Forum (https://hlfx.ru/forum/index.php)
- Half-Life SDK (https://hlfx.ru/forum/forumdisplay.php?forumid=8)
-- Host_Error: EV_Precache: 'events/GrenadeLauncher.sc' Precache can only be done in sp (https://hlfx.ru/forum/showthread.php?threadid=2519)
Host_Error: EV_Precache: 'events/GrenadeLauncher.sc' Precache can only be done in sp
Hi again
I´ve made a remake of Secondary Fire of the HL MP5 (My code is attached)
I can compile the hl.dll perfectly but when I write "give weapon_grenadelauncher" in the console I have the following error:
code:
Host_Error: EV_Precache: 'events/GrenadeLauncher.sc' Precache can only be done in spawn functions Netchan_Clear() : reliable length not 0, reliable_sequence: 57, incoming_reliable_acknowledged:
S34Qu4K3 so Precache GrenadeLauncher.sc in spawn What problems?)
1 | void CGrenadeLauncher::Spawn( ) |
2 |
3 | { |
4 | m_usGrenadeLauncher = PRECACHE_EVENT( 1, "events/GrenadeLauncher.sc" ); |
5 | //... |
S34Qu4K3 and now add in W_Precache (in weapons.cpp) new line
UTIL_PrecacheOtherWeapon( "weapon_GrenadeLauncher" ); |
__________________
My Projects: download page
F.A.Q по XashNT
Блог разработчика в телеграме
C:\DOCUME~1\C4C5~1\LOCALS~1\Temp\a33328if(72) : see declaration of 'size_t'
OMG, you are right ^^
No problems but when i try to shot, nothing happens
may be the way it should be?
__________________
My Projects: download page
F.A.Q по XashNT
Блог разработчика в телеграме
C:\DOCUME~1\C4C5~1\LOCALS~1\Temp\a33328if(72) : see declaration of 'size_t'
Временная зона GMT. Текущее время 14:52. | Показать все 6 сообщений этой темы на одной странице |
На основе vBulletin версии 2.3.0
Авторское право © Jelsoft Enterprises Limited 2000 - 2002.
Дизайн и программирование: Crystice Softworks © 2005 - 2024