There is a bug in the official plug-in of Challenge your bestamxmodx, which has caused my server to generate a lot of error logs. I submitted the error in the official github, and no one is willing to fix it so far. Can anyone help me here?
“Code_0xABC,帖子:173332,成员:10921” написал(а):А код не нужно прикреплять?
[/引用]
ПредоставтеL 12/05/2022 - 10:04:59: [AMXX] Displaying debug trace (plugin "miscstats.amxx", version "1.10.0.5465")
L 12/05/2022 - 10:04:59: [AMXX] Run time error 25: parameter error
L 12/05/2022 - 10:04:59: [AMXX] [0] miscstats.sma::client_death (line 553)
amxmodx\data\lang\miscstats.txt
I used chinese
for (new teammate; teammate < killerTeammatesCount; ++teammate)
{
victimTeammatesCount > 1 ?
ShowSyncHudMsg(killerTeammatesList[teammate], g_bottom_sync, "%l", "REMAINING_ENEMIES", victimTeammatesCount) :
ShowSyncHudMsg(killerTeammatesList[teammate], g_bottom_sync, "%l","REMAINING_ENEMY");
}
Итог, требуется исправить значения ключа REMAINING_ENEMIES = 还剩 %d 个%s 敌人... на REMAINING_ENEMIES = 还剩 %d 个 敌人...L 04/09/2024 - 10:57:14: String formatted incorrectly - parameter 6 (total 5)
L 04/09/2024 - 10:57:14: [AMXX] Displaying debug trace (plugin "test.amxx", version "1.0")
L 04/09/2024 - 10:57:14: [AMXX] Run time error 25: parameter error
L 04/09/2024 - 10:57:14: [AMXX] [0] test.sma::test (line 26)
Thank you very much!all85100, смотри, твоя строка из miscstats.txt. - REMAINING_ENEMIES = 还剩 %d 个%s 敌人..., сколько ты применяешь спецификаторов?, ответ 2,
А в самой функции ты подставляешь только victimTeammatesCount, которое относится к специфиуатору %d
Следовательно получается такая ошибка:Код:for (new teammate; teammate < killerTeammatesCount; ++teammate) { victimTeammatesCount > 1 ? ShowSyncHudMsg(killerTeammatesList[teammate], g_bottom_sync, "%l", "REMAINING_ENEMIES", victimTeammatesCount) : ShowSyncHudMsg(killerTeammatesList[teammate], g_bottom_sync, "%l","REMAINING_ENEMY"); }
Итог, требуется исправить значения ключа REMAINING_ENEMIES = 还剩 %d 个%s 敌人... на REMAINING_ENEMIES = 还剩 %d 个 敌人...