Raised This Month: $ Target: $400
 0% 

whats wrong here?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
liryck
Senior Member
Join Date: Mar 2007
Location: Venezuela
Old 06-18-2011 , 23:15   whats wrong here?
Reply With Quote #1

hello there i got this error from this code im not sure why but it was caus the player wasnt in the server?

[CSTRIKE] Player out of range <0>
[AMXX]run time error 10: native error <native "cs_set_user_team">
[AMXX] [0] yap_menu.sma::random choose <line 690>

code in question

PHP Code:
    if(cap_id == ct_cap && is_user_connected(player) && count_ct 5)
    {
        
cs_set_user_team(playerCS_TEAM_CT)
        
get_user_name(player,name,31)
        
client_print(0,print_chat,"--> %s has been picked for CT Randomly",name)
            
        
count_ct++
        
g_team[player] = KEY_CT;
            
        
check_display_team();
        
check_continue();
            
        
team true
            
        menu_destroy
(real_menu)
        
set_task(0.2,"AwesomeMenu",t_cap)
        return 
PLUGIN_HANDLED;
    }
    else if(
count_ct == 5)
    {
            
cs_set_user_team(playerCS_TEAM_T)//line 690
            
count_t++
            
            
g_team[player] = KEY_T;
            
            
get_user_name(player,name,31)
            
client_print(0,print_chat,"--> %s has been picked for Terrorist Randomly",name)
            
            
menu_destroy(real_menu)
            
set_task(0.2,"AwesomeMenu",t_cap)
            return 
PLUGIN_HANDLED;
    } 
liryck is offline
Send a message via MSN to liryck
 


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 23:25.


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