Raised This Month: $ Target: $400
 0% 

Won't precache model 0_o


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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