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: [CSTRIKE] Invalid player 10
L 04/19/2012 - 15:00:41: [AMXX] Displaying debug trace (plugin "objectives.amxx")
L 04/19/2012 - 15:00:41: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 04/19/2012 - 15:00:41: [AMXX] [0] objectives.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], iPlayer, iNum, plantteam = _:cs_get_user_team(planter);
get_players(iPlayers, iNum, "ah");
for( new i; i < iNum; i++ )
{
iPlayer = iPlayers[i];
if ( _:cs_get_user_team(iPlayer) == plantteam ) // LINE 78
{
Poke_Give_XP(planter, -1, explode_bonus)
set_hudmessage(127, 255, 42, 0.60, 0.15, 0, 6.0, 5.0)
show_hudmessage(planter, "You recieved %d xp for exploding the bomb!", explode_bonus)
}
}
}
__________________