Raised This Month: $ Target: $400
 0% 

Invalid player 10 | native "cs_get_user_team"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MrKiller2010
Senior Member
Join Date: Aug 2012
Old 09-13-2013 , 09:55   Invalid player 10 | native "cs_get_user_team"
Reply With Quote #1

Code:
L 09/12/2013 - 20:34:24: [CSTRIKE] Invalid player 10
L 09/12/2013 - 20:34:24: [AMXX] Run time error 10 (plugin "Admin_menu.amxx") (native "cs_get_user_team") - debug not enabled!
PHP Code:
public HandleTransfer(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    
    new 
data[6], name[64]
    new 
accesscallback
    
    menu_item_getinfo 
(menuitemaccessdata5name63callback)
    new 
tempid str_to_num (data)
    
    
get_user_name(idszName32)
    
get_user_name(tempidszPlayerName32)
    
    
ColorChat(0GREY"%s ^4%s^3 just transfered ^4%s^3!"prefixszNameszPlayerName)
 if(
cs_get_user_team(tempid) == CS_TEAM_T
    { 
        
cs_set_user_team(tempidCS_TEAM_CT
        
ExecuteHamB(Ham_CS_RoundRespawntempid)  
    }
    if(
cs_get_user_team(tempid) == CS_TEAM_CT)
    {
        
cs_set_user_team(tempidCS_TEAM_T)
        
ExecuteHamB(Ham_CS_RoundRespawntempid)
    }
    
CmdAdminMenu(id)
    
    return 
PLUGIN_CONTINUE

__________________
JailBreak & HNS
MrKiller2010 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 19:12.


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