Raised This Month: $ Target: $400
 0% 

Not precached error...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 06-27-2007 , 12:56   Not precached error...
Reply With Quote #1

I've finally decided to start learning fakemeta instead of using engine. When trying to port the weapon model change I get a not precached error.

PHP Code:
// This gives a not precached error...
set_pev(idpev_viewmodel"models/v_gauss.mdl");
set_pev(idpev_weaponmodel"models/p_gauss.mdl");

// This will set the models perfectly...
entity_set_string(idEV_SZ_viewmodel"models/v_gauss.mdl");
entity_set_string(idEV_SZ_weaponmodel"models/p_gauss.mdl"); 
Yes I have both of those models precached
hlstriker is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 06-27-2007 , 13:45   Re: Not precached error...
Reply With Quote #2

Quote:
Originally Posted by hlstriker View Post
set_pev(id, pev_viewmodel, "models/v_gauss.mdl");
set_pev(id, pev_weaponmodel, "models/p_gauss.mdl");
->
Code:
set_pev(id, pev_viewmodel2, "models/v_gauss.mdl");
set_pev(id, pev_weaponmodel2, "models/p_gauss.mdl");
OR
Code:
 set_pev(id, pev_viewmodel, engfunc(EngFunc_AllocString, "models/v_gauss.mdl"));
 set_pev(id, pev_weaponmodel, engfunc(EngFunc_AllocString, "models/p_gauss.mdl"));
__________________
All you need to change the world is one good lie and a river of blood

Last edited by P34nut; 06-27-2007 at 13:59.
P34nut is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 06-27-2007 , 13:51   Re: Not precached error...
Reply With Quote #3

Thanks, but what is the difference between pev_viewmodel and pev_viewmodel2?
hlstriker is offline
Old 06-27-2007, 13:53
organizedKaoS
This message has been deleted by organizedKaoS.
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 21:28.


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