я не скриптер ,чтоб знать как это исправить,знал бы не писал сюда) автор уже добавил проверку ,но помогло частично,не все сообщения выводятся в чат,и ошибка не ушла@kuper, просто нужна проверка на версию игры или наличия этого параметра игры перед попыткой его изменения.
В Orange Box он имеется, а в v34 ещё не было, емнип.
Спасибо, что указали на ошибку(к слову, об этом не написано в API)с такой ошибкой не сталкивались?
Exception reported: SetMVPCount is not supported on this game
/**
* Gets a client's mvp count
*
* @param client Client index to get mvp count of.
* @return Returns the client's internal MVP count.
* @error Invalid client.
*/
native int CS_GetMVPCount(int client);
/**
* Sets a client's mvp count
*
* @param client Client index to set mvp count for.
* @param value Value to set client's mvp count as.
* @error Invalid client.
*/
native void CS_SetMVPCount(int client, int value);
- Исправлена работа плагина на css v34, а именно:
В CSS V34 нет(я не знал)поэтому выбивало ошибкуC-подобный:CS_GetMVPCount и CS_SetMVPCount,
Exception reported: SetMVPCount is not supported on this game
Почти наверняка в других играх плагин не запустится с просьбой завести ClientMod APIbabka68 обновил(а) ресурс ResetScore новой записью:
Обновление 1.6.2
Узнать больше об этом обновлении...
ЗдравствуйтеДобрый день!
Как пофиксить ошибку, CS:GO
L 05/15/2022 - 12:02:47: [SM] [1] Line 147, C:\test\CSSOB\cstrike\addons\sourcemod\plugins\ResetScore.sp::Timer_Notification_Of_Commands
- Убрал "поддержку" CSS v34, так как написал отдельную версию под неё, подробнее тут [ClientMod] Resetscore
- Удалил файлы переводов от 34 версии игры
- Собственно убраны проверки на 34 версию игры
- Проверил работоспособность на CSS:OB и CS:GO ошибок в работе не обнаружено
- Мини оптимиззация:
- Заменена функция AddCommandListener на форвард OnClientSayCommand (так то лучше)
- Исправлена проблема, когда sm_enable "0" и вы пытаетесь написать любую фразу( Привет) или символ, а вам спамит "Плагин отключен!"
Здравствуйте, проверьте значение переменных через консоль сервера, ответ пришлите в обсуждение ресурсаСчет возвращается обратно в новом раунде и вроде при убийстве/смерти.
mp_backup_round_auto 0 // sv If enabled will keep in-memory backups to handle reconnecting players even if the backup files aren't written to disk
mp_backup_round_file 0 //sv If set then server will save all played rounds information to files filename_date_time_team1_team2_mapname_roundnum_score1_scor
mp_backup_round_file_last 0 //sv Every time a backup file is written the value of this convar gets updated to hold the name of the backup file.
mp_backup_round_file_pattern 0 // sv If set then server will save all played rounds information to files named by this pattern, e.g.'%prefix%_%date%_%time%_%team1%_
mp_backup_restore_load_file // Loads player cash, KDA, scores and team scores; resets to the next round after the backup
reset_expo // Reset player scores, player controls, team scores, and end the round
Backup у меня давно выключены а reset_expo чет не особо понял как работает ибо просит sv_cheats 1Здравствуйте, проверьте значение переменных через консоль сервера, ответ пришлите в обсуждение ресурса
C-подобный:mp_backup_round_auto 0 // sv If enabled will keep in-memory backups to handle reconnecting players even if the backup files aren't written to disk mp_backup_round_file 0 //sv If set then server will save all played rounds information to files filename_date_time_team1_team2_mapname_roundnum_score1_scor mp_backup_round_file_last 0 //sv Every time a backup file is written the value of this convar gets updated to hold the name of the backup file. mp_backup_round_file_pattern 0 // sv If set then server will save all played rounds information to files named by this pattern, e.g.'%prefix%_%date%_%time%_%team1%_
дабы я не думаю, что плагин тому виной, это делает CS GO
P.S Еще можно попробовать поиграться с этим
C-подобный:mp_backup_restore_load_file // Loads player cash, KDA, scores and team scores; resets to the next round after the backup
C-подобный:reset_expo // Reset player scores, player controls, team scores, and end the round