Здраствуйте дорогие форумчане!Не знаю как решить проблему, раньше ставил данный плагин (kickmenu_reasons_addon 0.3a) все было ок. До включения режима debug была следующая ошибка:
get_pcvar_numТак вот, после включения режима debug следующая ошибка:
[AMXX] [0] kickmenu_reasons_addon.sma::ReasonsMenuHandler (line 259)Код
public ReasonsMenuHandler(id, iKey)
{
if(iKey == 9)
return PLUGIN_HANDLED;
if(iKey == 8)
{
client_cmd(id, "messagemode kickreason");
return PLUGIN_HANDLED;
}
new iPlayer = g_iTarget[id];
if(!is_user_connected(iPlayer))
{
client_print(id, print_chat, "* %L", id, "PLAYER_HAS_LEFT_THE_SERVER");
PlayersMenuDisplay(id, g_iPlayerMenuPage[id]);
return PLUGIN_HANDLED;
}
new szTargetName[32];
get_user_name(iPlayer, szTargetName, 31);
new szReasonName[16];
formatex(szReasonName, 15, "KREASON_%d", iKey);
switch(get_pcvar_num(amx_show_activity))
{
case 1:
{
if(!iKey)
client_print(0, print_chat, "%L", id, "ADMIN_KICK_1", szTargetName);
else
client_print(0, print_chat, "%L. %L: %L", id, "ADMIN_KICK_1", szTargetName, id, "CLIENT_PRINT_REASON", id, szReasonName);
}
case 2:
{
new szAdminName[32];
get_user_name(id, szAdminName, 31);
if(!iKey)
client_print(0, print_chat, "%L", id, "ADMIN_KICK_2", szAdminName, szTargetName);
else
client_print(0, print_chat, "%L. %L: %L", id, "ADMIN_KICK_2", szAdminName, szTargetName, id, "CLIENT_PRINT_REASON", id, szReasonName);
}
}
if(!iKey)
server_cmd("kick #%d", get_user_userid(iPlayer));
else
server_cmd("kick #%d ^"%L^"", get_user_userid(iPlayer), id, szReasonName);
server_exec();
return PLUGIN_HANDLED;
}
Прошу помочь :c
Отредактировал: kayot1337, - 6.2.2015, 22:58