Помощь баг в классе зм !

Жора

Участник
Сообщения
16
Симпатии
0
Баллы
1
#1
Всем привет !
помогите исправить такую ошибку !
Очень буду рад ! Спс за ранее Ё

L 05/28/2018 - 20:31:26: [ZP] Invalid Player (0)
L 05/28/2018 - 20:31:26: [AMXX] Displaying debug trace (plugin "1zp_zclass_energy_ball.amxx")
L 05/28/2018 - 20:31:26: [AMXX] Run time error 10: native error (native "zp_get_user_zombie_class")
L 05/28/2018 - 20:31:26: [AMXX] [0] 1zp_zclass_energy_ball.sma::zp_user_infected_post (line 237)
L 05/28/2018 - 20:32:53: [ZP] Invalid Player (0)
L 05/28/2018 - 20:32:53: [AMXX] Displaying debug trace (plugin "1zp_zclass_energy_ball.amxx")
L 05/28/2018 - 20:32:53: [AMXX] Run time error 10: native error (native "zp_get_user_zombie_class")
L 05/28/2018 - 20:32:53: [AMXX] [0] 1zp_zclass_energy_ball.sma::zp_user_infected_post (line 237)
L 05/28/2018 - 20:33:29: [ZP] Invalid Player (0)
L 05/28/2018 - 20:33:29: [AMXX] Displaying debug trace (plugin "1zp_zclass_energy_ball.amxx")
L 05/28/2018 - 20:33:29: [AMXX] Run time error 10: native error (native "zp_get_user_zombie_class")
L 05/28/2018 - 20:33:29: [AMXX] [0] 1zp_zclass_energy_ball.sma::zp_user_infected_post (line 237)
L 05/28/2018 - 20:36:38: Start of error session.
 

Вложения

BadMandarin

Участник
Сообщения
138
Симпатии
51
Баллы
104
#2
C++:
public zp_user_infected_post(id, infector)
{
    if (infector && zp_get_user_zombie_class(infector) == g_zclass_energyball)
    {
        if ((energyball_num[infector]) <= get_pcvar_num(g_shoot_times))
        {
            ammo_hud(infector, 0)
            energyball_num[infector] += 1
            ammo_hud(infector, 1)
        }
    }
    if (zp_get_user_zombie_class(id) == g_zclass_energyball && !zp_get_user_nemesis(id))
    {
        ammo_hud(id,1)
        ChatColor(id, "!g[ZP] !y%L",id,"TESLA_INFO11")
        i_cooldown_time[id] = floatround(g_abilonecooldown)
        remove_task(id)
        reset_cvars(id)
        g_has_pain_shock_free[id] = true
    }

    set_task(get_cvar_float("zp_give_hp_tesla_freq"), "AddHP44", id, _, _, "b")
    set_pev(id, pev_body, random_num(0, 1))
}
Попробуй так.
 

Жора

Участник
Сообщения
16
Симпатии
0
Баллы
1
#3
C++:
public zp_user_infected_post(id, infector)
{
    if (infector && zp_get_user_zombie_class(infector) == g_zclass_energyball)
    {
        if ((energyball_num[infector]) <= get_pcvar_num(g_shoot_times))
        {
            ammo_hud(infector, 0)
            energyball_num[infector] += 1
            ammo_hud(infector, 1)
        }
    }
    if (zp_get_user_zombie_class(id) == g_zclass_energyball && !zp_get_user_nemesis(id))
    {
        ammo_hud(id,1)
        ChatColor(id, "!g[ZP] !y%L",id,"TESLA_INFO11")
        i_cooldown_time[id] = floatround(g_abilonecooldown)
        remove_task(id)
        reset_cvars(id)
        g_has_pain_shock_free[id] = true
    }

    set_task(get_cvar_float("zp_give_hp_tesla_freq"), "AddHP44", id, _, _, "b")
    set_pev(id, pev_body, random_num(0, 1))
}
Попробуй так.
не работает
 

BalbuR

Участник
Сообщения
19
Симпатии
4
Баллы
59
#4
Код:
if (is_user_connected(infector) && zp_get_user_zombie_class(infector) == g_zclass_energyball)
 
Сверху