Raised This Month: $ Target: $400
 0% 

Ham_Precache, how to use ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 11-29-2010 , 08:18   Ham_Precache, how to use ?
Reply With Quote #1

Title ?
dFF is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-29-2010 , 08:23   Re: Ham_Precache, how to use ?
Reply With Quote #2

Like any others Ham forward, you need to provide a classname to hook.
__________________
Arkshine is offline
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 11-29-2010 , 08:40   Re: Ham_Precache, how to use ?
Reply With Quote #3

Like these ?
PHP Code:
iEnt entity_create"info_target" )

//stuff

ExecuteHamBHam_PrecacheiEnt 
dFF is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-29-2010 , 08:44   Re: Ham_Precache, how to use ?
Reply With Quote #4

To call it, yes, just need to pass an entity index. But info_target would be a wrong example this entity does nothing.
__________________

Last edited by Arkshine; 11-29-2010 at 08:46.
Arkshine is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 11-29-2010 , 08:51   Re: Ham_Precache, how to use ?
Reply With Quote #5

@Arkshine: whn is this forward called exactly (Ham_Precache )
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 11-29-2010 , 08:54   Re: Ham_Precache, how to use ?
Reply With Quote #6

I have create some entities and I set the model with EngFunc_SetModel or entity_set_model, I precached the model with precache_model or EngFunc_PrecacheModel and server crashed with error "model name_model not precached".

I copied the model in models folder, When I connected to server, the precache is fine, but after some rounds played, server crashed with not preache model.

Possible to not create correct the entities ?

Last edited by dFF; 11-29-2010 at 08:58.
dFF is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-29-2010 , 09:11   Re: Ham_Precache, how to use ?
Reply With Quote #7

@abdul-rehman : CClass::Precache() (CBasePlayer, CUSP, etc..) is called when an entity spawns.

@dFF : Show your code, it will be more easy to figure out your problem.
__________________
Arkshine 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 11:21.


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