Участник
Пользователь
- Сообщения
- 49
- Реакции
- 32
- Ошибка
-
Не отображается текст в скомпилированных плагинах (client_print, client_print_color)
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5271 (http://www.amxmodx.org)
Authors:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Jun 24 2020 13:53:30
Built from: https://github.com/alliedmodders/amxmodx/commit/5eea3e5
Build ID: 5271:5eea3e5
Core mode: JIT+ASM32
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.8.0.711-dev
Build date: 13:13:38 Feb 6 2021 (2492)
Build from: https://github.com/dreamstalker/rehlds/commit/722e19d
- ReGamedll
-
ReGameDLL version: 5.20.0.492-dev
Build date: 15:26:35 Jan 4 2021
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/aae507c
- Версия Metamod
-
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
- Список метамодулей
-
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.92d ini Start Never
[ 2] Revoice RUN - revoice_mm_i386.so v0.1.0.34 ini Start Never
[ 3] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 4] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 5] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5271 ini Start ANY
[ 6] SafeNameAndChat RUN - SafeNameAndChat.so v1.1 ini ANY ANY
[ 7] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 8] WHBlocker RUN - whblocker_mm_i386.so v1.5.697 ini Chlvl ANY
[ 9] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[10] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5271 pl5 ANY ANY
[11] CSX RUN - csx_amxx_i386.so v1.9.0.5271 pl5 ANY ANY
[12] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl5 ANY Never
[13] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5271 pl5 ANY ANY
[14] ReAPI RUN - reapi_amxx_i386.so v5.19.0.211-dev pl5 ANY Never
[15] Engine RUN - engine_amxx_i386.so v1.9.0.5271 pl5 ANY ANY
15 plugins, 15 running
- Список плагинов
-
Currently loaded plugins:
name version author file status
[ 1] Admin Base 1.9.0.5271 AMXX Dev Team admin.amxx running
[ 2] Admin Commands 1.9.0.5271 AMXX Dev Team admincmd.amxx running
[ 3] Admin Help 1.9.0.5271 AMXX Dev Team adminhelp.amxx running
[ 4] Slots Reservation 1.9.0.5271 AMXX Dev Team adminslots.amxx running
[ 5] Multi-Lingual System 1.9.0.5271 AMXX Dev Team multilingual.am running
[ 6] Menus Front-End 1.9.0.5271 AMXX Dev Team menufront.amxx running
[ 7] Commands Menu 1.9.0.5271 AMXX Dev Team cmdmenu.amxx running
[ 8] Players Menu 1.9.0.5271 AMXX Dev Team plmenu.amxx running
[ 9] Maps Menu 1.9.0.5271 AMXX Dev Team mapsmenu.amxx running
[ 10] Plugin Menu 1.9.0.5271 AMXX Dev Team pluginmenu.amxx running
[ 11] Admin Chat 1.9.0.5271 AMXX Dev Team adminchat.amxx running
[ 12] Anti Flood 1.9.0.5271 AMXX Dev Team antiflood.amxx running
[ 13] Scrolling Message 1.9.0.5271 AMXX Dev Team scrollmsg.amxx running
[ 14] Info. Messages 1.9.0.5271 AMXX Dev Team imessage.amxx running
[ 15] Admin Votes 1.9.0.5271 AMXX Dev Team adminvote.amxx running
[ 16] NextMap 1.9.0.5271 AMXX Dev Team nextmap.amxx running
[ 17] Nextmap Chooser 1.9.0.5271 AMXX Dev Team mapchooser.amxx running
[ 18] TimeLeft 1.9.0.5271 AMXX Dev Team timeleft.amxx running
[ 19] Pause Plugins 1.9.0.5271 AMXX Dev Team pausecfg.amxx running
[ 20] Stats Configuration 1.9.0.5271 AMXX Dev Team statscfg.amxx running
[ 21] StatsX 1.9.0.5271 AMXX Dev Team statsx.amxx running
[ 22] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 23] Simple Damager 2.1.0 fl0wer simple_damager. running
[ 24] ReParachute 1.5 PurposeLess reparachute.amx running
[ 25] Mode 2x2 2.5re s1lent mode.amxx running
[ 26] Advanced Kill Assists 1.3c Xelson next21_kill_ass running
[ 27] [ReAPI] No Team Flash 0.0.3 Vaqtincha no_team_flash.a running
[ 28] AFK Control ReNew 1.2(a) neygomon afk_control.amx running
[ 29] [ReAPI] AWPoff 1.3 PAffAEJIkA :3 awp_off.amxx running
[ 30] [ReAPI] Info Killer 1.1.0 Jumper Info_Killer.amx running
[ 31] ResetScore 1.0 Leo_[BH] resetscore_reap running
31 plugins, 31 running
Приветствую. Пробую собирать сервер под Ubuntu, на родном компиляторе. Суть проблемы в том, что текстовые сообщения плагинов не отображаются в чате, ни кириллица, ни латиница. Вместо текста в чат выводится просто буква "s". Грешил на сам клиент игры, но на других серверах все отображается хорошо. Пробовал пересохранять в нескольких редакторах в кодировке UTF-8 without BOM, но это ни к чему не приводит. Грешу на свои кривые руки, прошу помочь советом. Собственно, проблема присутствует на всех скомпилированных плагинах на всем сервере, за исключением тех, что поставлялись в комплекте с amxx
#include <amxmodx>
#include <reapi>
public plugin_init()
{
register_plugin("ResetScore", "1.0", "Leo_[BH]");
register_clcmd("say /rs", "reset_score");
register_clcmd("say_team /rs", "reset_score");
register_clcmd("say /resetscore", "reset_score");
register_clcmd("say_team /resetscore", "reset_score");
}
public reset_score(id)
{
if(!is_user_connected(id)) return PLUGIN_CONTINUE;
func_reset_score(id)
return PLUGIN_CONTINUE;
}
public func_reset_score(id)
{
set_entvar(id, var_frags, 0.0);
set_member(id, m_iDeaths, 0);
message_begin(MSG_BROADCAST, 85);
write_byte(id);
write_short(0);
write_short(0);
write_short(0);
write_short(0);
message_end();
client_print_color(id, print_team_red, "^4[RS] ^3Ваш счёт обнулен");
client_print(id, print_chat, "[RS] Ваш счёт обнулен");
client_print_color(id, print_team_red, "^4[RS] ^3test");
}
#include <reapi>
public plugin_init()
{
register_plugin("ResetScore", "1.0", "Leo_[BH]");
register_clcmd("say /rs", "reset_score");
register_clcmd("say_team /rs", "reset_score");
register_clcmd("say /resetscore", "reset_score");
register_clcmd("say_team /resetscore", "reset_score");
}
public reset_score(id)
{
if(!is_user_connected(id)) return PLUGIN_CONTINUE;
func_reset_score(id)
return PLUGIN_CONTINUE;
}
public func_reset_score(id)
{
set_entvar(id, var_frags, 0.0);
set_member(id, m_iDeaths, 0);
message_begin(MSG_BROADCAST, 85);
write_byte(id);
write_short(0);
write_short(0);
write_short(0);
write_short(0);
message_end();
client_print_color(id, print_team_red, "^4[RS] ^3Ваш счёт обнулен");
client_print(id, print_chat, "[RS] Ваш счёт обнулен");
client_print_color(id, print_team_red, "^4[RS] ^3test");
}
В этой теме было размещено решение! Перейти к решению.
Последнее редактирование: