Raised This Month: $ Target: $400
 0% 

Run time error 10 (plugin "vcjb.amxx") (native "cs_get_user_team" )


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 08-03-2010 , 19:27   Re: Run time error 10 (plugin "vcjb.amxx") (native "cs_get_user_team" )
Reply With Quote #3

L 08/04/2010 - 07:28:08: [AMXX] [0] vcjb.sma::cmdCheck (line 72)

The block of code that line 72 is located:

PHP Code:
public cmdCheck(id)
{
    if( !
is_user_alive(id) )
        return 
PLUGIN_HANDLED;
    
    if( 
cs_get_user_team(id) != CS_TEAM_T )
        return 
PLUGIN_HANDLED;
    
    if( 
gLastRequest == true )
        return 
PLUGIN_HANDLED;
    
    new 
iPlayers[32] = 0;
    new 
iNum;
    new 
id;
    
get_playersiPlayersiNum"a" )
    
    for( new 
0gMaxClientsi++ )
    {
        
id iPlayers[i]
        
        if( !
is_user_alive(id) )
            continue;
        
        switch( 
cs_get_user_team(id) )
        {
            case 
CS_TEAM_T:
            {
                
Prisoners++
            }
            case 
CS_TEAM_CT:
            {
                
Guards++
            }
        }
    }
    
    if( 
cs_get_user_team(id) == CS_TEAM_CT )
    {
        
client_print_coloridBlue"^4[Jailbreak] ^1You aren't a prisoner^4." )
    }
    
    if( 
Prisoners )
    {
        
client_print_coloridBlue"^4[Jailbreak] ^1There are too many terrorists alive^4!" )
    } else {
        
cmdLastRequestid )
    }
    
    return 
PLUGIN_HANDLED;

__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX 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 00:06.


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