Other log error:
Code:
L 11/21/2015 - 11:57:45: Start of error session.
L 11/21/2015 - 11:57:45: Info (map "cs_assault") (file "addons/amxmodx/logs/error_20151121.log")
L 11/21/2015 - 11:57:45: [ZP] Invalid Player (-1)
L 11/21/2015 - 11:57:45: [AMXX] Displaying debug trace (plugin "zp_bot_addon_give_random_extras.amxx")
L 11/21/2015 - 11:57:45: [AMXX] Run time error 10: native error (native "zp_force_buy_extra_item")
L 11/21/2015 - 11:57:45: [AMXX] [0] zp_bot_addon_give_random_extras.sma::GiveRandomExtraBot (line 50)
Code:
zp_force_buy_extra_item(BotID, zp_get_extra_item_id("M249 Para Machinegun"), 1); // Line 50
Code:
stock fnGetRandomBot(target_index)
{
new iBot, id; iBot = 0;
for (id = 1; id <= g_max_players; id++)
{
if (is_user_bot(id) && is_user_connected(id) && !zp_get_user_zombie(id) && !zp_get_user_sniper(id) && !zp_get_user_survivor(id) && !g_has_extra[id]) iBot++;
if (iBot == target_index)
return id;
}
return-1;
}
__________________