Raised This Month: $ Target: $400
 0% 

eror logs .


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Splot
Junior Member
Join Date: Nov 2011
Old 11-21-2011 , 15:49   eror logs .
Reply With Quote #1

hello .
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "Team Models"
#define VERSION "1.0"
#define AUTHOR "?"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)    
    
register_event("ResetHUD""playermodel""b")    
    return 
PLUGIN_CONTINUE
}

public 
plugin_precache()
{        
    
precache_model("models/player/CTplayer.mdl")    

    return 
PLUGIN_CONTINUE
}

public 
playermodel(idlevelcid)
{
    if(
is_user_connected(id) && get_user_team(id) == 2)
    {    
        
cs_set_user_model(id"CTplayer.mdl")
    }    
    else
    {
        
cs_reset_user_model(id)
    }    

eror logs :
Quote:
L 11/21/2011 - 21:11:42: Info (map "de_dust") (file "addons/amxmodx/logs/error_20111121.log")
L 11/21/2011 - 21:11:42: [CSTRIKE] Invalid player 4
L 11/21/2011 - 21:11:42: [AMXX] Displaying debug trace (plugin "teamskin.amxx")
L 11/21/2011 - 21:11:42: [AMXX] Run time error 10: native error (native "cs_reset_user_model")
L 11/21/2011 - 21:11:42: [AMXX] [0] teamskin.sma::resetModel (line 22)
L 11/21/2011 - 21:11:42: [CSTRIKE] Invalid player 7
L 11/21/2011 - 21:11:42: [AMXX] Displaying debug trace (plugin "teamskin.amxx")
L 11/21/2011 - 21:11:42: [AMXX] Run time error 10: native error (native "cs_reset_user_model")
L 11/21/2011 - 21:11:42: [AMXX] [0] teamskin.sma::resetModel (line 22)
L 11/21/2011 - 21:11:42: [CSTRIKE] Invalid player 8
what wrong here ?

Last edited by Splot; 11-21-2011 at 15:58.
Splot 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:30.


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