Raised This Month: $ Target: $400
 0% 

problem with cs_set_user_team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
D1ma
Junior Member
Join Date: Jun 2010
Old 07-17-2010 , 16:26   problem with cs_set_user_team
Reply With Quote #1

that is the code:
Code:
public ct_move(id)
{
    new name[32];
    cs_set_user_team(id,CS_TEAM_CT);
    get_user_name(id, name, 31);
    server_cmd("amx_revive %s ct",name);
    log_amx("ct_move(%d)",id);
    return PLUGIN_CONTINUE;
    
}
and that is the errors:
Code:
L 07/17/2010 - 23:17:49: [CSTRIKE] Invalid player 5
L 07/17/2010 - 23:17:49: [AMXX] Displaying debug trace (plugin "ct_move.amxx")
L 07/17/2010 - 23:17:49: [AMXX] Run time error 10: native error (native "cs_set_user_team")
L 07/17/2010 - 23:17:49: [AMXX]    [0] ct_move.sma::ct_move (line 18)
what is the problem here?
thanks.
D1ma 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 07:13.


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