Raised This Month: $ Target: $400
 0% 

Precache and Warnings


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
B3N4K
Senior Member
Join Date: Jun 2008
Location: Czech Republic
Old 11-29-2011 , 15:47   Re: Precache and Warnings
Reply With Quote #6

You declare garras but you never use it.
PHP Code:
new garras[] = "models/garras.mdl" 
PHP Code:
precache_model(garras
PHP Code:
set_pev(idpev_viewmodel2garras
Also are you sure you want to check if CfgFile exists? And if it does it wont precache?
I havent read the whole code but i guess that should be more likely like this:
PHP Code:
public plugin_precache()
{
    if( !
ReadCfgFile() )
    {
        
log_amx("Configuration file doesn't exist !!")
    }
    
precache_model("models/garras.mdl")

Config files are supposed to exist and it is also supposed to precache that model ;)

Last edited by B3N4K; 11-29-2011 at 15:56.
B3N4K is offline
 



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


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