Raised This Month: $ Target: $400
 0% 

Won't precache model 0_o


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 11-08-2009 , 10:51   Won't precache model 0_o
Reply With Quote #1

God damn it why it won't precache the last( "fleshpound" ) model in ZOMBIE_CLASSES
PHP Code:
new const ZOMBIE_CLASSES[][]= {
    
"patriv"
    
"classic"
    
"scrake",
    
"siren",
    
"fleshpound"

PHP Code:
// Precache
    
new modelpath_human[100];
    for(new 
0sizeof ZOMBIE_CLASSESi++)
    {
        
formatex(modelpath_humansizeof modelpath_human 1"models/player/%s/%s.mdl"ZOMBIE_CLASSES[i], ZOMBIE_CLASSES[i])
        if( !
file_existsmodelpath_human ) )
        {
            return 
0;
        }

        
engfunc(EngFunc_PrecacheModelmodelpath_human)

        
formatex(modelpath_humansizeof modelpath_human 1"models/player/%s/%sT.mdl"ZOMBIE_CLASSES[i], ZOMBIE_CLASSES[i])
        if ( 
file_existsmodelpath_human ) )
        {
            
engfunc(EngFunc_PrecacheModelmodelpath_human);

            return 
1;
        }
    } 
FUCK what the hell, no really? Stupid bugs
I will suicide
__________________

Last edited by xbatista; 11-08-2009 at 10:54.
xbatista is offline
Send a message via Skype™ to xbatista
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-08-2009 , 10:52   Re: Won't precache model 0_o
Reply With Quote #2

I see nothing wrong. If it doesn't precache it means the model name is absent or badly named.
__________________
Arkshine is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 11-08-2009 , 11:01   Re: Won't precache model 0_o
Reply With Quote #3

No no it's correct named :/
I've tryied :
PHP Code:
engfunc(EngFunc_PrecacheModel"models/player/fleshpound/fleshpound.mdl"); 
and works.. But I don't want it

I checked 1000 times is it correctly named and model is good
__________________

Last edited by xbatista; 11-08-2009 at 11:03.
xbatista is offline
Send a message via Skype™ to xbatista
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-08-2009 , 11:06   Re: Won't precache model 0_o
Reply With Quote #4

Debug the code. Add a log_amx() or server_print() in each condition and see.
__________________
Arkshine is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 11-08-2009 , 11:51   Re: Won't precache model 0_o
Reply With Quote #5

I got only 3 from 5 !! oh fuck
Quote:
L 11/08/2009 - 18:50:09: [zombie.amxx] models/player/patriv/patriv.mdl
L 11/08/2009 - 18:50:09: [zombie.amxx] models/player/classic/classic.mdl
L 11/08/2009 - 18:50:09: [zombie.amxx] models/player/scrake/scrake.mdl
Names are correct, whats wrong?
__________________

Last edited by xbatista; 11-08-2009 at 11:54.
xbatista is offline
Send a message via Skype™ to xbatista
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-08-2009 , 12:10   Re: Won't precache model 0_o
Reply With Quote #6

You have added the debug where ? Are you sure that you're running the plugin with ZOMBIE_CLASSES modified ?
__________________
Arkshine is offline
Reply


Thread Tools
Display Modes

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 17:42.


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