ZP mod + zp class classic error

Статус
В этой теме нельзя размещать новые ответы.

adamantov

Пользователь
Регистрация
12 Сен 2017
Сообщения
63
Симпатии
-54
Пол
Мужской
Помогите Исправить это пж.

Код:
L 02/09/2019 - 23:16:52: Start of error session.
L 02/09/2019 - 23:16:52: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20190209.log")
L 02/09/2019 - 23:16:52: Invalid array handle provided (0)
L 02/09/2019 - 23:16:52: [AMXX] Displaying debug trace (plugin "zombie_plague40.amxx", version "4.3 Fix6a")
L 02/09/2019 - 23:16:52: [AMXX] Run time error 10: native error (native "ArrayGetCell")
L 02/09/2019 - 23:16:52: [AMXX]    [0] zombie_plague40.sma::native_register_zombie_class (line 10519)
L 02/09/2019 - 23:16:52: Unhandled dynamic native error
L 02/09/2019 - 23:16:52: [AMXX] Displaying debug trace (plugin "zclass_classic1.amxx", version "1.0")
L 02/09/2019 - 23:16:52: [AMXX] Run time error 10: native error (native "zp_register_zombie_class")
L 02/09/2019 - 23:16:52: [AMXX]    [0] zclass_classic1.sma::plugin_precache (line 86)
L 02/09/2019 - 23:16:52: [AMXX] Plugin ("zombie_plague40.amxx") is setting itself as failed.
L 02/09/2019 - 23:16:52: [AMXX] Plugin says: No zombie classes loaded!
L 02/09/2019 - 23:16:52: [AMXX] Displaying debug trace (plugin "zombie_plague40.amxx", version "4.3 Fix6a")
L 02/09/2019 - 23:16:52: [AMXX] Run time error 1: forced exit
L 02/09/2019 - 23:16:52: [AMXX]    [0] zombie_plague40.sma::plugin_init (line 1313)
 

Вложения

K

kapangaIII

Objective-C:
public plugin_precache()
{
    register_plugin("[ZP] Classic Zombie", "1.0", "dias")

    // Register the new class and store ID for reference
    
    precache_model(KNOCKBOMB_HEALER)
    sounds = ArrayCreate(13, 1);
    new i = 0;
    while (i < 13)
    {
        ArrayPushCell(sounds, ArrayCreate(64, 1));
        i++;
    }
    while (i < 2)
    {
        ArrayPushString(ArrayGetCell(sounds, 0), infect[i][0]);
        i++;
    }
    while (i < 2)
    {
        ArrayPushString(ArrayGetCell(sounds, 1), pain[i][0]);
        i++;
    }
    while (i < 2)
    {
        ArrayPushString(ArrayGetCell(sounds, 2), die[i][0]);
        i++;
    }
    while (i < 1)
    {
        ArrayPushString(ArrayGetCell(sounds, 3), fall[i][0]);
        i++;
    }
    while (i < 2)
    {
        ArrayPushString(ArrayGetCell(sounds, 4), miss_slash[i][0]);
        i++;
    }
    while (i < 2)
    {
        ArrayPushString(ArrayGetCell(sounds, 5), miss_wall[i][0]);
        i++;
    }
    while (i < 2)
    {
        ArrayPushString(ArrayGetCell(sounds, 6), hit_normal[i][0]);
        i++;
    }
    while (i < 1)
    {
        ArrayPushString(ArrayGetCell(sounds, 7), hit_stab[i][0]);
        i++;
    }
    while (i < 1)
    {
        ArrayPushString(ArrayGetCell(sounds, 8), idle[i][0]);
        i++;
    }
    while (i < 1)
    {
        ArrayPushString(ArrayGetCell(sounds, 9), idle_last[i][0]);
        i++;
    }
    while (i < 1)
    {
        ArrayPushString(ArrayGetCell(sounds, 10), madness[i][0]);
        i++;
    }
    while (i < 2)
    {
        ArrayPushString(ArrayGetCell(sounds, 12), infect_adv[i][0]);
        i++;
    }
    g_zclassid1 = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback,sounds)
    return 0;
}
 

adamantov

Пользователь
Регистрация
12 Сен 2017
Сообщения
63
Симпатии
-54
Пол
Мужской
Objective-C:
public plugin_precache()
{
    register_plugin("[ZP] Classic Zombie", "1.0", "dias")

    // Register the new class and store ID for reference
   
    precache_model(KNOCKBOMB_HEALER)
    sounds = ArrayCreate(13, 1);
    new i = 0;
    while (i < 13)
    {
        ArrayPushCell(sounds, ArrayCreate(64, 1));
        i++;
    }
    while (i < 2)
    {
        ArrayPushString(ArrayGetCell(sounds, 0), infect[i][0]);
        i++;
    }
    while (i < 2)
    {
        ArrayPushString(ArrayGetCell(sounds, 1), pain[i][0]);
        i++;
    }
    while (i < 2)
    {
        ArrayPushString(ArrayGetCell(sounds, 2), die[i][0]);
        i++;
    }
    while (i < 1)
    {
        ArrayPushString(ArrayGetCell(sounds, 3), fall[i][0]);
        i++;
    }
    while (i < 2)
    {
        ArrayPushString(ArrayGetCell(sounds, 4), miss_slash[i][0]);
        i++;
    }
    while (i < 2)
    {
        ArrayPushString(ArrayGetCell(sounds, 5), miss_wall[i][0]);
        i++;
    }
    while (i < 2)
    {
        ArrayPushString(ArrayGetCell(sounds, 6), hit_normal[i][0]);
        i++;
    }
    while (i < 1)
    {
        ArrayPushString(ArrayGetCell(sounds, 7), hit_stab[i][0]);
        i++;
    }
    while (i < 1)
    {
        ArrayPushString(ArrayGetCell(sounds, 8), idle[i][0]);
        i++;
    }
    while (i < 1)
    {
        ArrayPushString(ArrayGetCell(sounds, 9), idle_last[i][0]);
        i++;
    }
    while (i < 1)
    {
        ArrayPushString(ArrayGetCell(sounds, 10), madness[i][0]);
        i++;
    }
    while (i < 2)
    {
        ArrayPushString(ArrayGetCell(sounds, 12), infect_adv[i][0]);
        i++;
    }
    g_zclassid1 = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback,sounds)
    return 0;
}
g_zclassid1 = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback,sounds)
Тут Error при конпил
 
K

kapangaIII

Понятное дело, ты же используешь другой мод, а инклюды не заменил.
 

adamantov

Пользователь
Регистрация
12 Сен 2017
Сообщения
63
Симпатии
-54
Пол
Мужской
Можно закрывать!
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу