- Ошибка
-
L 12/01/2023 - 21:17:57: Start of error session.
L 12/01/2023 - 21:17:57: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20231201.log")
L 12/01/2023 - 21:17:57: Plugin called menu_display when item=MENU_EXIT
L 12/01/2023 - 21:17:57: [AMXX] Displaying debug trace (plugin "pimpspug.amxx", version "1.1.6")
L 12/01/2023 - 21:17:57: [AMXX] Run time error 10: native error (native "menu_display")
L 12/01/2023 - 21:17:57: [AMXX] [0] pimpspug.sma::TeamsVote2 (line 2845)
- ОС
- Linux
- Amx Mod X
-
Amx Mod X 1.9.0
- Билд
-
ReHLDS version: 3.12.0.780-dev
- ReGamedll
-
ReGameDLL version: 5.21.0.546-dev
- Версия Metamod
-
Metamod-r v1.3.0.128,
- Список метамодулей
-
?
- Список плагинов
-
?
- Автор плагина
- ?
- Версия плагина
- ?
- Исходный код
-
public TeamsVote2() {
if ( !g_CustomGame ) {
if (get_playersnum() < get_pcvar_num(cvar_pLeft) - 2) {
if (g_DidWaitEnough == 16) {
client_print(0, print_chat, "%s %L", PREFIX, LANG_PLAYER, "PLAYERS_NOT_JOINING")
set_pug_state(0)
g_IsStarted = false
g_AfterRdy = false
new taskId = scanForTaskID()
set_task(3.0, "MatchIsOver", taskId)
return PLUGIN_HANDLED
}
new sum
sum = g_DidWaitEnough * 15
sum = 300 - sum
client_print(0, print_chat, "%s %L", PREFIX, LANG_PLAYER, "TEAMS_VOTE_DELAY")
set_hudmessage(255, 0, 0, 0.35, 0.66, 0, 6.0, 12.0)
ShowSyncHudMsg(0, g_MsgSync6, "%L", LANG_PLAYER, "TEAMS_VOTE_DELAY_HUD", sum)
g_DidWaitEnough++
new taskId = scanForTaskID()
set_task(15.0, "TeamsVote2", taskId)
return PLUGIN_HANDLED
}
}
set_pug_state(0)
g_MapChanged = false
g_AfterRdy = true
g_DidWaitEnough = 0
new title[86]
new option1[32], option2[35], option3[35]
formatex(title, charsmax(title), "\r%L", LANG_PLAYER, "TEAMS_TITLE")
formatex(option1, charsmax(option1), "%L", LANG_PLAYER, "SAME_TEAMS")
formatex(option2, charsmax(option2), "%L", LANG_PLAYER, "RANDOM_CAPTAINS")
formatex(option3, charsmax(option3), "%L", LANG_PLAYER, "RANDOM_TEAMS")
g_rVoteMenu = menu_create(title, "voteteams");
menu_additem(g_rVoteMenu, option1)
menu_additem(g_rVoteMenu, option2)
menu_additem(g_rVoteMenu, option3)
new pplayers[32], ppnum, ptempid;
get_players(pplayers, ppnum, "ch");
for( new i; i<ppnum; i++ ) {
ptempid = pplayers[i]
client_print(ptempid, print_chat, "%s %L", PREFIX, LANG_PLAYER, "TEAMS_PLEASE_VOTE")
menu_display(ptempid, g_rVoteMenu)
}
client_cmd(0, "spk Gman/Gman_Choose1")
new taskId = scanForTaskID()
set_task(10.0, "EndTeamsVote", taskId)
return PLUGIN_HANDLED
}
public voteteams(id, menu, item) {
if( item == MENU_EXIT ) {
menu_display(id, menu)
return PLUGIN_HANDLED;
}
Привет,
Я получаю сообщение об ошибке при отладке этого плагина.
Можете мне помочь, пожалуйста?
Я получаю сообщение об ошибке при отладке этого плагина.
Можете мне помочь, пожалуйста?
Код:
Line 2845:
menu_display(ptempid, g_rVoteMenu)