[JB]Падает сервер

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
3
Реакции
0
Ошибка
L 02/17/2018 - 08:57:47: [AMXX] Displaying debug trace (plugin "jbe_core.amxx")

L 02/17/2018 - 08:57:47: [AMXX] Run time error 11: divide

L 02/17/2018 - 08:57:47: [AMXX] [0] core.inc::abs (line 43)

L 02/17/2018 - 08:57:47: [AMXX] [1] jbe_core2.sma::Show_ChooseTeamMenu (line 1301)

L 02/17/2018 - 08:57:47: [AMXX] [2] jbe_core2.sma::ClCmd_ChooseTeam (line 1102)
ОС
Linux
Билд
ReHLDS version: 3.4.0.633-dev
ReGamedll
нету
Список метамодулей
description      stat pend  file              vers      src   load  unlod
[ 1] Reunion RUN - reunion_mm_i386. v0.1.75 ini Start Never
[ 2] Revoice RUN - revoice_mm_i386. v0.1.0.3 ini Start Never
[ 3] AMX Mod X RUN - amxmodx_mm_i386. v1.8.2 ini Start ANY
[ 4] PatchMoney RUN - patchmoney_mm_i3 v2.2 ini Start Never
[ 5] ProcessCmds RUN - processcmds_mm_i v1.1.4 ini Start Never
[ 6] MySQL RUN - mysql_amxx_i386. v1.8.2 pl3 ANY ANY
[ 7] Fun RUN - fun_amxx_i386.so v1.8.2 pl3 ANY ANY
[ 8] FakeMeta RUN - fakemeta_amxx_i3 v1.8.2 pl3 ANY ANY
[ 9] CStrike RUN - cstrike_amxx_i38 v1.8.2 pl3 ANY ANY
[10] CSX RUN - csx_amxx_i386.so v1.8.2 pl3 ANY ANY
[11] Engine RUN - engine_amxx_i386 v1.8.2 pl3 ANY ANY
[12] Ham Sandwich RUN - hamsandwich_amxx v1.8.2 pl3 ANY ANY
Список плагинов
Currently loaded plugins:
name version author file status
[ 1] AMXBans: Core MA 1.6.9 Larte Team amxbans_core.am debug
[ 2] FreshBan 1.0.5b kanagava fresh_bans.amxx running
[ 3] Anti Flood 1.8.2 AMXX Dev Team antiflood.amxx running
[ 4] Admin Commands 1.8.2 AMXX Dev Team admincmd.amxx running
[ 5] Admin Help 1.8.2 AMXX Dev Team adminhelp.amxx running
[ 6] Slots Reservation 1.8.2 AMXX Dev Team adminslots.amxx running
[ 7] Admin Votes 1.8.2 AMXX Dev Team adminvote.amxx running
[ 8] Admin Chat 1.8.M AMXX Dev Team adminchat.amxx running
[ 9] Commands Menu 1.8.2 AMXX Dev Team cmdmenu.amxx running
[ 10] Info. Messages 1.8.2 AMXX Dev Team imessage.amxx running
[ 11] Maps Menu 1.8.2 AMXX Dev Team mapsmenu.amxx running
[ 12] Menus Front-End 1.8.2 AMXX Dev Team menufront.amxx running
[ 13] CS Misc. Stats 1.8.2 AMXX Dev Team miscstats.amxx running
[ 14] Multi-Lingual System 1.8.2 AMXX Dev Team multilingual.am running
[ 15] NextMap 1.8.2 AMXX Dev Team nextmap.amxx running
[ 16] Pause Plugins 1.8.2 AMXX Dev Team pausecfg.amxx running
[ 17] Players Menu 1.8.1.3746 AMXX Dev Team plmenu.amxx debug
[ 18] Restrict Weapons 1.8.2 AMXX Dev Team restmenu.amxx running
[ 19] Scrolling Message 1.8.2 AMXX Dev Team scrollmsg.amxx running
[ 20] CS Stats Logging 1.8.2 AMXX Dev Team stats_logging.a running
[ 21] Stats Configuration 1.8.2 AMXX Dev Team statscfg.amxx running
[ 22] StatsX 1.8.2 AMXX Dev Team statsx.amxx running
[ 23] Teleport Menu 1.8.2 AMXX Dev Team telemenu.amxx running
[ 24] TimeLeft 1.8.2 AMXX Dev Team timeleft.amxx running
[ 25] Plugin Menu 1.8.2 AMXX Dev Team pluginmenu.amxx running
[ 26] [JBE] Core 1.0 Sanlerus jbe_core.amxx debug
[ 27] KOTIK JailBreak 1.0 jbe_global.amxx debug
[ 28] [JBE_DM] Hide And Seek 1.1 Freedo.m jbe_dm_hideands running
[ 29] [JBE_DM] Sparta 1.1 Freedo.m jbe_dm_sparta.a running
[ 30] [JBE]Штурм 0.0.0.1 B@N@N jbe_dm_shturm.a running
[ 31] [JBE_DM] Ringolevio 1.1 Freedo.m jbe_dm_ringolev debug
[ 32] [JBE_DM] Sniper 1.1 Freedo.m jbe_dm_sniper.a running
[ 33] [JBE_DM] Predator vk/krisiso ToJI9IHGaa jbe_dm_predator running
[ 34] Grab+ 1.0 R-2 jbe_grab.amxx running
[ 35] [JBE_DM] GALAXY 1.0 BANTYP jbe_dm_galaxy.a running
[ 36] Auto recording demo 2.0 IzI | Bonaqua (R amx_autodemorec running
[ 37] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[ 38] JBE Ranks 0.2.4 OverGame jbe_ranks.amxx running
[ 39] Block Change Name 1.0 DJ_WEST block_ChangeNam running
[ 40] Lite Translit 2.5.7b/10 neygomon lite_translit.a running
[ 41] AMXBans: Screens Gm 1.6 Larte Team amxbans_ssban.a running
41 plugins, 41 running
Исходный код
прикрепил
Сервер падает выход ошибка
L 02/17/2018 - 08:57:47: [AMXX] Displaying debug trace (plugin "jbe_core.amxx")
L 02/17/2018 - 08:57:47: [AMXX] Run time error 11: divide
L 02/17/2018 - 08:57:47: [AMXX] [0] core.inc::abs (line 43)
L 02/17/2018 - 08:57:47: [AMXX] [1] jbe_core2.sma::Show_ChooseTeamMenu (line 1301)
L 02/17/2018 - 08:57:47: [AMXX] [2] jbe_core2.sma::ClCmd_ChooseTeam (line 1102)
помогите исправить это.
 
В этой теме было размещено решение! Перейти к решению.

Вложения

Последнее редактирование модератором:
Сообщения
198
Реакции
273
Помог
5 раз(а)
>> Run time error 11: divide
В строке 1301 происходит деление на ноль.

Предполагаю, что нужно:
Код:
if(IsNotSetBit(g_iBitUserBlockedGuard, id) && g_iUserTeam[id] != 2 && ((abs(g_iPlayersNum[1] - 1) / g_iAllCvars[TEAM_BALANCE]) + 1) > g_iPlayersNum[2])
поменять на:
Код:
if(IsNotSetBit(g_iBitUserBlockedGuard, id) && g_iUserTeam[id] != 2 && (abs(g_iPlayersNum[1] - 1) / (g_iAllCvars[TEAM_BALANCE]+ 1) ) > g_iPlayersNum[2])
Либо анатилически (в зависимости от контекста) самому решить проблему деления на ноль в этом месте:
Код:
((abs(g_iPlayersNum[1] - 1) / g_iAllCvars[TEAM_BALANCE]) + 1)
 
Последнее редактирование модератором:
Статус
В этой теме нельзя размещать новые ответы.

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

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