Raised This Month: $ Target: $400
 0% 

Error on cs_get_user_team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
iBrazilian
Senior Member
Join Date: May 2011
Old 04-19-2012 , 16:35   Error on cs_get_user_team
Reply With Quote #1

A little help please, I've marked line 78 with // LINE 78 ... Can't really think of anything up to this point..
PHP Code:
L 04/19/2012 15:00:41: [CSTRIKEInvalid player 10
L 04
/19/2012 15:00:41: [AMXXDisplaying debug trace (plugin "objectives.amxx")
L 04/19/2012 15:00:41: [AMXXRun time error 10native error (native "cs_get_user_team")
L 04/19/2012 15:00:41: [AMXX]    [0objectives.sma::bomb_explode (line 78
PHP Code:
public bomb_explode(planter,defuser)
    {
    if ( !
pluginactive || playercount minplayers ) return;
    
    new 
explode_bonus get_pcvar_num(PCVarDefusalMap);
    new 
iPlayers[32], iPlayeriNumplantteam _:cs_get_user_team(planter);
    
    
get_players(iPlayersiNum"ah");
    for( new 
iiNumi++ )
        {
        
iPlayer iPlayers[i];
        if ( 
_:cs_get_user_team(iPlayer) == plantteam // LINE 78
            
{
            
Poke_Give_XP(planter, -1explode_bonus)
            
set_hudmessage(127255420.600.1506.05.0)
            
show_hudmessage(planter"You recieved %d xp for exploding the bomb!"explode_bonus)            
        }
    }

__________________
Pokemod Season 5 [ |||||||||| Complete]
iBrazilian 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:44.


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