Ошибка

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
17
Реакции
-2
Ошибка
L 05/29/2018 - 03:02:48: [AMXX] Displaying debug trace (plugin "INFO_RANK_V0.1.amxx")
L 05/29/2018 - 03:02:48: [AMXX] Run time error 4: index out of bounds
L 05/29/2018 - 03:02:48: [AMXX] [0] ColorChat.inc::ColorChat (line 74)
L 05/29/2018 - 03:02:48: [AMXX] [1] af432b62c7dd5aecd053e16e6a435aa9.sma::event_player_spawn (line 83)
L 05/29/2018 - 03:02:48: [AMXX] [2] af432b62c7dd5aecd053e16e6a435aa9.sma::eResetHUD (line 62)
ОС
Linux
Билд
version
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 13:12:29 Aug 29 2013 (6153)
ReGamedll
-
Список метамодулей
[ 1] AMX Mod X        RUN   -    amxmodx_mm_i386.  v1.8.2    ini   Start ANY  
[ 2] dproto_EF RUN - dproto_i386.so v0.9.391 ini Start Never
[ 3] Semiclip RUN - semiclip_mm_i386 v2.2 ini ANY ANY
[ 4] WHBlocker RUN - whblocker_mm_i38 v1.5.692 ini Chlvl ANY
[ 5] LocalizeBug Fix RUN - localizebugfix_m v2.4 ini Start Never
[ 6] VoiceTranscoder RUN - VoiceTranscoder. v2017RC3 ini ANY ANY
[ 7] ProcessCmds RUN - processcmds_mm_i v1.1.4 ini Start Never
[ 8] Engine RUN - engine_amxx_i386 v1.8.2 pl1 ANY ANY
[ 9] FakeMeta RUN - fakemeta_amxx_i3 v1.8.2 pl1 ANY ANY
[10] okapi RUN - okapi_amxx_i386. v1.0 pl1 ANY ANY
[11] Orpheu RUN - orpheu_amxx_i386 v2.6.3 pl1 ANY ANY
[12] MySQL RUN - mysql_amxx_i386. v1.8.2 pl1 ANY ANY
[13] Ham Sandwich RUN - hamsandwich_amxx v1.8.2 pl1 ANY ANY
[14] CStrike RUN - cstrike_amxx_i38 v1.8.2 pl1 ANY ANY
[15] CSX RUN - csx_amxx_i386.so v1.8.2 pl1 ANY ANY
[16] Fun RUN - fun_amxx_i386.so v1.8.2 pl1 ANY ANY
16 plugins, 16 running
Список плагинов
[ 1] opengl detector 0.8.30ob kanagava opengl32.amxx running 
[ 2] AMXBans: Core MA 1.6.9 Larte Team amxbans_core.am running
[ 3] AMXBans: Main MA 1.6.9 Larte Team amxbans_main.am running
[ 4] AIM detector 0.9.4.1b kanagava aim_detector.am running
[ 5] Anti Flood 1.8.2 AMXX Dev Team antiflood.amxx running
[ 6] Admin Commands 1.8.2 AMXX Dev Team admincmd.amxx running
[ 7] Admin Votes 1.8.2 AMXX Dev Team adminvote.amxx running
[ 8] Admin Chat 1.8.M AMXX Dev Team adminchat.amxx running
[ 9] Commands Menu 1.8.2 AMXX Dev Team cmdmenu.amxx running
[ 10] Map Manager 2.5.54 Mistrick mapmanager.amxx running
[ 11] Map Manager: Sub Plugi 0.1 Mistrick mapmanager_subp running
[ 12] Maps Menu 1.8.2 AMXX Dev Team mapsmenu.amxx running
[ 13] Menus Front-End 1.8.2 AMXX Dev Team menufront.amxx running
[ 14] CS Misc. Stats 1.8.2 AMXX Dev Team miscstats.amxx running
[ 15] Multi-Lingual System 1.8.2 AMXX Dev Team multilingual.am running
[ 16] Pause Plugins 1.8.2 AMXX Dev Team pausecfg.amxx running
[ 17] Players Menu 1.8.M AMXX Dev Team plmenu.amxx running
[ 18] Restrict Weapons 1.8.2 AMXX Dev Team restmenu.amxx running
[ 19] StatsX (MastaMan Editi 1.8.1.3746 AMXX Dev Team & statsx_shell.am running
[ 20] CS Stats Logging 1.8.2 AMXX Dev Team stats_logging.a running
[ 21] Stats Configuration 1.8.2 AMXX Dev Team statscfg.amxx running
[ 22] Teleport Menu 1.8.2 AMXX Dev Team telemenu.amxx running
[ 23] Plugin Menu 1.8.1.3746 AMXX Dev Team pluginmenu.amxx running
[ 24] AES: Exp CSTRIKE 0.3 serfreeman1337 aes_exp_cstrike running
[ 25] AES: Experience Editor 0.1 serfreeman1337 aes_exp_editor. running
[ 26] AES: Informer 0.2 serfreeman1337 aes_informer.am running
[ 27] Advanced Experience Sy 0.4 serfreeman1337 aes_main.amxx running
[ 28] V.I.P Custom Weapons 1.0.0 Vaqtincha vip_custom.amxx running
[ 29] V.I.P Custom M4A1 1.0.0 Vaqtincha custom_m4a1.amx running
[ 30] V.I.P Custom KNIFE 1.0.0 Vaqtincha custom_knife.am running
[ 31] V.I.P Custom DEAGLE 1.0.0 Vaqtincha custom_deagle.a running
[ 32] V.I.P Custom AWP 1.0.0 Vaqtincha custom_awp.amxx running
[ 33] V.I.P Custom AK-47 1.0.0 Vaqtincha custom_ak47.amx running
[ 34] Killa HP 1.0 jas0n killa_hp.amxx running
[ 35] ComboSprites 0.5 Chrescoe1 combo_sprtes.am running
[ 36] Kill Assist 1.0 Dom1no_[KZ] kill_assist.amx running
[ 37] Parachute 1.0 maeStro parachute.amxx running
[ 38] Automatic knife duel 0.3 JGHG automatic_knife running
[ 39] COLORS MENU 1.2 DUKKHAZ0R color.amxx running
[ 40] Knife WarnUP 1.0 ill knife_warm-up.a running
[ 41] AFK Manager v1.4d Leon McVeran afk_manager.amx running
[ 42] Ultimate Sounds 1.7 Dizzy / Bmann_42 f_ultimate_soun running
[ 43] Block HudTextArgs 1.0 ConnorMcLeod hudTextArgsBloc running
[ 44] Reload Status Bar 0.1.1 VEN reload_status.a running
[ 45] IP 2.1 Bl0ck IP.amxx running
[ 46] Nade Messages 1.0 v3x nademessages.am running
[ 47] Damager 1.1 Prayer|STR@TEG Damager.amxx running
[ 48] mute menu 1.0 cheap_suit mutemenu.amxx running
[ 49] Auto recording demo 2.0 IzI | Bonaqua (R amx_autodemorec running
[ 50] custom.hpk Control 2.0 Northon customhpk_contr running
[ 51] Reset_Score 1.0 Silenttt Fixed b Resetscore.amxx running
[ 52] Instant AutoTeamBalanc 1.2.0 ConnorMcLeod instant_autotea running
[ 53] AWPoff 3.0 PAffAEJIkA :3 awp.amxx running
[ 54] Night VIPs Private Racoon night_vips.amxx running
[ 55] Anti overflow 2.0 mazdan antir.amxx running
[ 56] Rock to Ban 1.01 Safety1st rock2ban.amxx running
[ 57] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[ 58] Grenade Mode 0.6 gyxoBka grenade_mode.am running
[ 59] Effects plug-in 1.0 OverGame effects.amxx running
[ 60] say /vk by gena 0.1 GeNa say_vk.amxx running
[ 61] Info Rank 0.1 by CepeH9 INFO_RANK_V0.1. debug
[ 62] FullSpawns 1.0 Eg@r4$il{ FullSpawns.amxx running
[ 63] Stop Chat Ad 2.0.0 MastaMan stop_chat_ad.am running
[ 64] Nice Gamer 1.0 Got Milk? Nice.amxx running
[ 65] SpecList 1.2a FatalisDK speclist_rus.am running
[ 66] Accuracy Fix 1.0 Numb accuracy_fix.am running
[ 67] Lite Translit 2.8 neygomon lite_translit.a running
[ 68] AMXBans: Screens Gm 1.6 Larte Team amxbans_ssban.a running
68 plugins, 68 running
Исходный код
#include <amxmodx>
#include <csx>
#include <ColorChat>

#define MAX_PLAYERS 32


new bool:g_RestartAttempt[MAX_PLAYERS+1]

new g_oldrank[MAX_PLAYERS+1]

#if defined DISABLED_BY_DEFAULT
new bool:disabled[MAX_PLAYERS+1] = {true, ...}
#else
new bool:disabled[MAX_PLAYERS+1]
#endif

new inforank

public plugin_init() {
register_plugin("Info Rank", "0.1", "by CepeH9")
register_dictionary("inforank.txt")

inforank = register_cvar("amx_inforank", "1")

register_event("TextMsg", "eRestartAttempt", "a", "2=#Game_will_restart_in")
register_event("ResetHUD", "eResetHUD", "be")

register_clcmd("say /inforank","switchCmd", 0, "- enable/disable info rank messages")
register_clcmd("say_team /inforank","switchCmd", 0, "- enable/disable info rank messages")
register_clcmd("fullupdate", "fullupdateCmd")
}

public fullupdateCmd() {
return PLUGIN_HANDLED_MAIN
}

public eRestartAttempt() {
if(!get_pcvar_num(inforank))
return

new players[MAX_PLAYERS], num
get_players(players, num, "a")
for (new i; i < num; ++i)
g_RestartAttempt[players[i]] = true
}

public eResetHUD(id) {
if (g_RestartAttempt[id]) {
g_RestartAttempt[id] = false
return
}

if(!get_pcvar_num(inforank))
return

if(disabled[id])
return

event_player_spawn(id)
}

public event_player_spawn(id) {

new osef[8]
new rank = get_user_stats(id, osef, osef)
new maxrank = get_statsnum()

if(g_oldrank[id] == 0)
g_oldrank[id] = rank

new diff = g_oldrank[id] - rank
g_oldrank[id] = rank

if(diff > 0) {
ColorChat(id, GREEN, "^3Ты поднялся на ^4%i ^3место(а)...", diff)
}
else if(diff < 0) {
ColorChat(id, RED, "^3Ты опустился на ^4%i ^3место(а)...", abs(diff))
}
ColorChat(id, GREY, "^1Ты занимаешь ^4%i-е ^1место из ^4%i", rank, maxrank)
}

public switchCmd(id) {
if(!get_pcvar_num(inforank))
return PLUGIN_CONTINUE

if(disabled[id]) {
disabled[id] = false
client_cmd(id, "setinfo _ir 1")
ColorChat(id, GREEN, "^4Сообщения включены")
}
else {
disabled[id] = true
client_cmd(id, "setinfo _ir 0")
ColorChat(id, GREEN, "^4Сообщения выключены")
}
return PLUGIN_CONTINUE
}

public client_authorized(id) {
new osef[8]
g_oldrank[id] = get_user_stats(id, osef, osef)

new enable[2]
get_user_info(id, "_ir", enable, 1)
if(!enable[0])
return

if(enable[0]=='1')
disabled[id] = false
else
disabled[id] = true
}

public client_disconnect(id) {
g_oldrank[id] = 0

#if defined DISABLED_BY_DEFAULT
disabled[id] = true
#else
disabled[id] = false
#endif
}
Помогите пожалуйста
 
В этой теме было размещено решение! Перейти к решению.
Сообщения
2,720
Реакции
2,997
Помог
60 раз(а)
Используйте локальный компилятор.
 
Статус
В этой теме нельзя размещать новые ответы.

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу