Падение сервера - L 11/11/2023 - 18:45:21: Invalid index 0 (count: 0) L 11/11/2023 - 18:45:21: [AMXX] Displaying debug trace (plugin "zombie_plague40.

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
28
Реакции
0
Ошибка
L 11/11/2023 - 18:45:21: Invalid index 0 (count: 0)
L 11/11/2023 - 18:45:21: [AMXX] Displaying debug trace (plugin "zombie_plague40.amxx", version "4.3 Fix6a")
L 11/11/2023 - 18:45:21: [AMXX] Run time error 10: native error (native "ArrayGetCell")
L 11/11/2023 - 18:45:21: [AMXX] [0] zombie_plague40.sma::make_blood (line 10207)
L 11/11/2023 - 18:45:21: FATAL ERROR (shutting down): PF_MessageBegin_I: New message started when msg '23' has not been sent yet
FATAL ERROR (shutting down): PF_MessageBegin_I: New message started when msg '23' has not been sent yet
Segmentation fault
ОС
Linux
Amx Mod X
1.8.3
Билд
ReHLDS
ReGamedll
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.13.0.788-dev
Build date: 07:36:33 Jul 12 2023 (3378)
Build from: https://github.com/dreamstalker/rehlds/commit/f955b07
version
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.13.0.788-dev
Build date: 07:36:33 Jul 12 2023 (3378)
Build from: https://github.com/dreamstalker/rehlds/commit/f955b07
Версия Metamod
meta version
Metamod-r v1.3.0.131, API (5:13)
Metamod-r build: 18:51:02 Jul 11 2022
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/adc9414
Список метамодулей
meta list
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] AMX Mod X RUN - amxmodx.so v1.8.3-dev+5201 ini Start ANY
[ 2] Reunion RUN - reunion.so v0.1.0.137 ini Start Never
[ 3] CStrike RUN - cstrike_amxx_i386.so v1.8.3-dev+5201 pl1 ANY
[ 4] CSX RUN - csx_amxx_i386.so v1.8.3-dev+5201 pl1 ANY
[ 5] FakeMeta RUN - fakemeta_amxx_i386.so v1.8.3-dev+5201 pl1 ANY
[ 6] MySQL RUN - mysql_amxx_i386.so v1.8.3-dev+5201 pl1 ANY
[ 7] Engine RUN - engine_amxx_i386.so v1.8.3-dev+5201 pl1 ANY
[ 8] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.8.3-dev+5201 pl1 ANY
[ 9] Fun RUN - fun_amxx_i386.so v1.8.3-dev+5201 pl1 ANY
9 plugins, 9 running
Список плагинов
[  1] Admin Loader            3.5         neygomon          admin_loader.am  running  
[ 2] FreshBans 1.4.8b kanagava fresh_bans.amxx running
[ 3] Admin Chat 1.8.3-dev+ AMXX Dev Team adminchat.amxx running
[ 4] Admin Commands 1.8.3-dev+ AMXX Dev Team admincmd.amxx running
[ 5] Anti Flood 1.8.3-dev+ AMXX Dev Team antiflood.amxx running
[ 6] Commands Menu 1.8.3-dev+ AMXX Dev Team cmdmenu.amxx running
[ 7] Info. Messages 1.8.3-dev+ AMXX Dev Team imessage.amxx running
[ 8] Menus Front-End 1.8.3-dev+ AMXX Dev Team menufront.amxx running
[ 9] Maps Menu 1.8.3-dev+ AMXX Dev Team mapsmenu.amxx running
[ 10] NextMap 1.8.3-dev+ AMXX Dev Team nextmap.amxx running
[ 11] Nextmap Chooser 1.8.3-dev+ AMXX Dev Team mapchooser.amxx running
[ 12] Players Menu 1.8.3-dev+ AMXX Dev Team plmenu.amxx running
[ 13] Plugin Menu 1.8.3-dev+ AMXX Dev Team pluginmenu.amxx running
[ 14] Restrict Weapons 1.8.3-dev+ AMXX Dev Team restmenu.amxx running
[ 15] TimeLeft 1.8.3-dev+ AMXX Dev Team timeleft.amxx running
[ 16] Scrolling Message 1.8.3-dev+ AMXX Dev Team scrollmsg.amxx running
[ 17] Admin Votes 1.8.3-dev+ AMXX Dev Team adminvote.amxx running
[ 18] CS Misc. Stats 1.8.3-dev+ AMXX Dev Team miscstats.amxx running
[ 19] CS Stats Logging 1.8.3-dev+ AMXX Dev Team stats_logging.a running
[ 20] Stats Configuration 1.8.3-dev+ AMXX Dev Team statscfg.amxx running
[ 21] [183] Parachute RBS 22.11.15 SKAJIbnEJIb & KR parachute_rbs.a running
[ 22] Custom Models 1.3.2 neugomon custom_models.a running
[ 23] Zombie Plague 4.3 Fix6a MeRcyLeZZ zombie_plague40 debug
[ 24] [ZP] Zombie Classes 4.3 MeRcyLeZZ, edit zp_zclasses40.a debug
[ 25] [CSO Like] ZClass: Hea 0.2 | 03.0 inf (nimroK) cso_zclass_heav running
[ 26] [ZP] Zombie Class: KF 0.2 meTaLiCroSS zp_zcls_siren.a running
[ 27] [ZP | AMXX] Sting Fing 0/0/1 m0rt3m zp_class_sting_ running
[ 28] [ZP] Zombie Class: Par 0.1 =), LARS-BLOODLI yt_class_revena running
[ 29] WeaponMenu 1.0 UNREAL weaponmenu.amxx running
[ 30] [ZP] Addon: Knifes NEW Mr.TheFold zp_addon_knifes running
[ 31] zm_vip_jump_num 1.0 MKOD zm_vip_jump_num running
[ 32] [ZP] Extra: Infinitys 1.0 Crock / =) (Popr azp_weapon_infi running
32 plugins, 32 running
Ничего вроде такого не добавлял что могло привести к такой ошибке
 
В этой теме было размещено решение! Перейти к решению.
Сообщения
1,082
Реакции
58
Помог
11 раз(а)
Скинь функцию где строка 10207,полностью функцию
 
Сообщения
28
Реакции
0
Code_0xABC, write_byte(ArrayGetCell(zombie_decals, random_num(0, ArraySize(zombie_decals) - 1)) + (g_czero * 12)) // random decal number (offsets +12 for CZ)
 
Сообщения
28
Реакции
0
Code_0xABC,
public make_blood(taskid)
{
// Only bleed when moving on ground
if (!(pev(ID_BLOOD, pev_flags) & FL_ONGROUND) || fm_get_speed(ID_BLOOD) < 80)
return;

// Get user origin
static Float:originF[3]
pev(ID_BLOOD, pev_origin, originF)

// If ducking set a little lower
if (pev(ID_BLOOD, pev_bInDuck))
originF[2] -= 18.0
else
originF[2] -= 36.0

// Send the decal message
engfunc(EngFunc_MessageBegin, MSG_PAS, SVC_TEMPENTITY, originF, 0)
write_byte(TE_WORLDDECAL) // TE id
engfunc(EngFunc_WriteCoord, originF[0]) // x
engfunc(EngFunc_WriteCoord, originF[1]) // y
engfunc(EngFunc_WriteCoord, originF[2]) // z
write_byte(ArrayGetCell(zombie_decals, random_num(0, ArraySize(zombie_decals) - 1)) + (g_czero * 12)) // random decal number (offsets +12 for CZ)
message_end()
}
 
Сообщения
1,082
Реакции
58
Помог
11 раз(а)
Как положено оформи, есть теки вставить код
 
Сообщения
28
Реакции
0
@Code_0xABC,Немного не понял, полностью тебе все скопировать и отправить? Или как?
 
Сообщения
1,082
Реакции
58
Помог
11 раз(а)
Где отправка сообщения, есть три точки , код
11 Ноя 2023
Код:
public test(){

}
 
Сообщения
28
Реакции
0
Code_0xABC,
public make_blood(taskid)
{
// Only bleed when moving on ground
if (!(pev(ID_BLOOD, pev_flags) & FL_ONGROUND) || fm_get_speed(ID_BLOOD) < 80)
return;

// Get user origin
static Float:originF[3]
pev(ID_BLOOD, pev_origin, originF)

// If ducking set a little lower
if (pev(ID_BLOOD, pev_bInDuck))
originF[2] -= 18.0
else
originF[2] -= 36.0

// Send the decal message
engfunc(EngFunc_MessageBegin, MSG_PAS, SVC_TEMPENTITY, originF, 0)
write_byte(TE_WORLDDECAL) // TE id
engfunc(EngFunc_WriteCoord, originF[0]) // x
engfunc(EngFunc_WriteCoord, originF[1]) // y
engfunc(EngFunc_WriteCoord, originF[2]) // z
write_byte(ArrayGetCell(zombie_decals, random_num(0, ArraySize(zombie_decals) - 1)) + (g_czero * 12)) // random decal number (offsets +12 for CZ)
message_end()
}

// Flare Lighting Effects
flare_lighting(entity, duration)
{
// Get origin and color
static Float:originF[3], color[3]
pev(entity, pev_origin, originF)
pev(entity, PEV_FLARE_COLOR, color)

// Lighting
engfunc(EngFunc_MessageBegin, MSG_PAS, SVC_TEMPENTITY, originF, 0)
write_byte(TE_DLIGHT) // TE id
engfunc(EngFunc_WriteCoord, originF[0]) // x
engfunc(EngFunc_WriteCoord, originF[1]) // y
engfunc(EngFunc_WriteCoord, originF[2]) // z
write_byte(get_pcvar_num(cvar_flaresize)) // radius
write_byte(color[0]) // r
write_byte(color[1]) // g
write_byte(color[2]) // b
write_byte(21) //life
write_byte((duration < 2) ? 3 : 0) //decay rate
message_end()

// Sparks
engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
write_byte(TE_SPARKS) // TE id
engfunc(EngFunc_WriteCoord, originF[0]) // x
engfunc(EngFunc_WriteCoord, originF[1]) // y
engfunc(EngFunc_WriteCoord, originF[2]) // z
message_end()
}

// Burning Flames
public burning_flame(taskid)
{
// Get player origin and flags
static origin[3], flags
get_user_origin(ID_BURN, origin)
flags = pev(ID_BURN, pev_flags)

// Madness mode - in water - burning stopped
if (g_nodamage[ID_BURN] || (flags & FL_INWATER) || g_burning_duration[ID_BURN] < 1)
{
// Smoke sprite
message_begin(MSG_PVS, SVC_TEMPENTITY, origin)
write_byte(TE_SMOKE) // TE id
write_coord(origin[0]) // x
write_coord(origin[1]) // y
write_coord(origin[2]-50) // z
write_short(g_smokeSpr) // sprite
write_byte(random_num(15, 20)) // scale
write_byte(random_num(10, 20)) // framerate
message_end()

// Task not needed anymore
remove_task(taskid);
return;
}
11 Ноя 2023
@Code_0xABC,Всеровно не понял что нужно сделать
 
Сообщения
1,082
Реакции
58
Помог
11 раз(а)
док ьватсв _ это равносильно этому
 
Сообщения
1,082
Реакции
58
Помог
11 раз(а)
Rommel, попробу вынеси за пределы функции write_byte это, до message_begin
new test = ArrayGetCell(zombie_decals, random_num(0, ArraySize(zombie_decals) - 1) и потом вставь в write_byte(test)
 
Сообщения
28
Реакции
0
Code_0xABC,
//// zombie_plague40.sma
// C:\Users\├ры√ьцрэ\Desktop\Compiler amxmodx 1.8.3\zombie_plague40.sma(10207) : error 017: undefined symbol "test"
// C:\Users\├ры√ьцрэ\Desktop\Compiler amxmodx 1.8.3\zombie_plague40.sma(11240) : warning 204: symbol is assigned a value that is never used: "g_czero"
//
// 1 Error.
// Could not locate output file C:\Users\├ры√ьцрэ\Desktop\Compiler amxmodx 1.8.3\compiled\zombie_plague40.amx (compile failed).
//
// Compilation Time: 1,14 sec
// ----------------------------------------

Press enter to exit ...
11 Ноя 2023
Code_0xABC,
public make_blood(taskid)
{
// Only bleed when moving on ground
if (!(pev(ID_BLOOD, pev_flags) & FL_ONGROUND) || fm_get_speed(ID_BLOOD) < 80)
return;

// Get user origin
static Float:originF[3]
pev(ID_BLOOD, pev_origin, originF)

// If ducking set a little lower
if (pev(ID_BLOOD, pev_bInDuck))
originF[2] -= 18.0
else
originF[2] -= 36.0

// Send the decal message
engfunc(EngFunc_MessageBegin, MSG_PAS, SVC_TEMPENTITY, originF, 0)
write_byte(TE_WORLDDECAL) // TE id
engfunc(EngFunc_WriteCoord, originF[0]) // x
engfunc(EngFunc_WriteCoord, originF[1]) // y
engfunc(EngFunc_WriteCoord, originF[2]) // z
write_byte(test)
message_end()
}
 
Сообщения
1,082
Реакции
58
Помог
11 раз(а)
Покажи public этой функции исправленый
11 Ноя 2023
Объявлять переменную надо в теле функции
 
Сообщения
28
Реакции
0
Code_0xABC,
public make_blood(taskid)
{
// Only bleed when moving on ground
if (!(pev(ID_BLOOD, pev_flags) & FL_ONGROUND) || fm_get_speed(ID_BLOOD) < 80)
return;

// Get user origin
static Float:originF[3]
pev(ID_BLOOD, pev_origin, originF)

// If ducking set a little lower
if (pev(ID_BLOOD, pev_bInDuck))
originF[2] -= 18.0
else
originF[2] -= 36.0

// Send the decal message
engfunc(EngFunc_MessageBegin, MSG_PAS, SVC_TEMPENTITY, originF, 0)
write_byte(TE_WORLDDECAL) // TE id
engfunc(EngFunc_WriteCoord, originF[0]) // x
engfunc(EngFunc_WriteCoord, originF[1]) // y
engfunc(EngFunc_WriteCoord, originF[2]) // z
write_byte(test)
message_end()
}
11 Ноя 2023
@Code_0xABC,Может я вам просто исходник скину?
 
Сообщения
28
Реакции
0
@Code_0xABC,У вас получится самому сделать и скинуть?
 
Статус
В этой теме нельзя размещать новые ответы.

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу