Разработчик
Скриптер
Проверенный
- Сообщения
- 2,750
- Реакции
- 3,013
- Помог
- 61 раз(а)
L 07/31/2017 - 22:47:47: [AMXX] Displaying debug trace (plugin "csstatsx_sql.amxx", version "0.7.4")
L 07/31/2017 - 22:47:47: [AMXX] Run time error 4: index out of bounds
L 07/31/2017 - 22:47:47: [AMXX] [0] csstatsx_sql.sma::Stats_SaveHit (line 1667)
L 07/31/2017 - 22:47:47: [AMXX] [1] csstatsx_sql.sma::EventHook_Damage (line 1451)
//
// Регистрация попадания
//
public EventHook_Damage(player)
{
static damage_take;damage_take = read_data(2)
static dmg_inflictor;dmg_inflictor = pev(player,pev_dmg_inflictor)
if(pev_valid(dmg_inflictor) != 2)
{
return PLUGIN_CONTINUE
}
static weapon_id,last_hit,attacker
attacker = get_user_attacker(player,weapon_id,last_hit)
if(!is_user_connected(attacker))
{
return PLUGIN_CONTINUE
}
if(0 <= last_hit < HIT_END)
{
Stats_SaveHit(attacker,player,damage_take,weapon_id,last_hit)
}
if(!is_user_alive(player))
{
Stats_SaveKill(attacker,player,weapon_id,last_hit)
}
return PLUGIN_CONTINUE
}
L 09/25/2017 - 20:33:13: [AMXX] Displaying debug trace (plugin "csstatsx_sql.amxx")
L 09/25/2017 - 20:33:13: [AMXX] Run time error 4: index out of bounds
L 09/25/2017 - 20:33:13: [AMXX] [0] csstatsx_sql.sma::Stats_SaveHit (line 1668)
L 09/25/2017 - 20:33:13: [AMXX] [1] csstatsx_sql.sma::EventHook_Damage (line 1452)