Raised This Month: $ Target: $400
 0% 

cs_get_user_team/cs_get_user_model problems..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 04-09-2017 , 13:49   cs_get_user_team/cs_get_user_model problems..
Reply With Quote #1

Hi Ther, i have problem been show me in logs with those codes...
log:
Quote:
L 04/09/2017 - 20:23:02: [CSTRIKE] Invalid player 7
L 04/09/2017 - 20:23:02: [AMXX] Displaying debug trace (plugin "test.amxx", version "6.0")
L 04/09/2017 - 20:23:02: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 04/09/2017 - 20:23:02: [AMXX] [0] test.sma::changeTeam (line 2135)
code:
PHP Code:
public changeTeamid )
{
    switch( 
cs_get_user_teamid ) )
    {
        case 
CS_TEAM_CTcs_set_user_teamidCS_TEAM_T );
        case 
CS_TEAM_Tcs_set_user_teamidCS_TEAM_CT );
    }

    
round_count 0;

and this other line
log:
Quote:
L 04/09/2017 - 189:01: [CSTRIKE] Invalid player 6
L 04/09/2017 - 189:01: [AMXX] Displaying debug trace (plugin "test.amxx", version "6.0")
L 04/09/2017 - 189:01: [AMXX] Run time error 10: native error (native "cs_set_user_model")
L 04/09/2017 - 189:01: [AMXX] [0] test.sma::fm_set_user_model (line 218
L 04/09/2017 - 189:01: [AMXX] [1] test.sma::changeModel (line 1185)
code of line 1185
PHP Code:
public changeModel(id)
{
    
//log_to_file(g_logfile, "changeModel(%d) = START", id);
    
fm_set_user_model(idg_zombie_models[iClass[id]]);
    
//log_to_file(g_logfile, "changeModel(%d) = END", id);

code of line 2188:
PHP Code:
stock fm_set_user_model(playermodelname[])
{
    
cs_set_user_model(playermodelname);
    
g_model[player] = true;

__________________

Last edited by D3XT3R; 04-09-2017 at 13:50.
D3XT3R is offline
Send a message via Skype™ to D3XT3R
 


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:58.


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