Проверенный
Участник
- Сообщения
- 2,288
- Реакции
- 1,740
- Помог
- 31 раз(а)
- Ошибка
-
L 04/01/2019 - 00:34:50: Start of error session.
L 04/01/2019 - 00:34:50: Info (map "de_alexandra") (file "addons/amxmodx/logs/error_20190401.log")
L 04/01/2019 - 00:34:50: Player 4 is not in game.
L 04/01/2019 - 00:34:50: [AMXX] Displaying debug trace (plugin "menuSystem.amxx", version "0.1.2")
L 04/01/2019 - 00:34:50: [AMXX] Run time error 10: native error (native "menu_display")
L 04/01/2019 - 00:34:50: [AMXX] [0] menuSystem.sma::GlobalCmd_Handler (line 148)
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.10.0.5250 (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: Feb 11 2019 03:16:53
Built from: https://github.com/alliedmodders/amxmodx/commit/f623126
Build ID: 5250:f623126
Core mode: JIT+ASM32
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.4.0.669-dev
Build date: 18:21:09 Mar 29 2019 (1812)
Build from: https://github.com/dreamstalker/rehlds/commit/f6822e3
- ReGamedll
-
ReGameDLL version: 5.7.0.323-dev
Build date: 21:13:23 Feb 25 2019
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/45fbb04
- Версия 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.0.133 ini Start Never
[ 2] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 3] AMX Mod X RUN - amxmodx_mm_i386.so v1.10.0.5250 ini Start ANY
[ 4] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC3 ini ANY ANY
[ 5] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 6] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 7] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 8] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 9] MySQL RUN - mysql_amxx_i386.so v1.10.0.5250 pl4 ANY ANY
[10] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl4 ANY Never
[11] FakeMeta RUN - fakemeta_amxx_i386.so v1.10.0.5250 pl4 ANY ANY
[12] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.10.0.5250 pl4 ANY ANY
[13] ReAPI RUN - reapi_amxx_i386.so v5.8.0.165-dev pl4 ANY Never
[14] Engine RUN - engine_amxx_i386.so v1.10.0.5250 pl4 ANY ANY
[15] CStrike RUN - cstrike_amxx_i386.so v1.10.0.5250 pl4 ANY ANY
[16] CSX RUN - csx_amxx_i386.so v1.10.0.5250 pl4 ANY ANY
16 plugins, 16 running
- Список плагинов
-
Currently loaded plugins:
name version author file status
[ 1] FreshBans 1.4.0b kanagava fresh_bans.amxx running
[ 2] DopBan 3.0.3b kanagava dop_ban.amxx running
[ 3] Admin Load 3.11.0 F@nt0M adminload.amxx running
[ 4] fb_forwards 0.1.5 Kanagava & Realu fb_forwards.amx running
[ 5] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 6] CSStatsX SQL 0.7.4+1 serfreeman1337 csstatsx_sql.am running
[ 7] Advanced Client Checke 0.3.7 Mistrick cmdchecker.amxx running
[ 8] Anti Flood 1.10.0.525 AMXX Dev Team antiflood.amxx running
[ 9] Admin Commands 1.10.0.525 AMXX Dev Team admincmd.amxx running
[ 10] Admin Chat 1.10.0.525 AMXX Dev Team adminchat.amxx running
[ 11] Multi-Lingual System 1.10.0.525 AMXX Dev Team multilingual.am running
[ 12] Menu System 0.1.2 serfreeman1337 menuSystem.amxx debug
[ 13] SF Warn Menu 0.1.4f serfreeman1337 sf_admin_warns. running
[ 14] Commands Menu 1.10.0.525 AMXX Dev Team cmdmenu.amxx running
[ 15] [ReAPI] Players Menu 1.7 neugomon players_menu.am running
[ 16] [Fork] Lite NightMode 1.1 neygomon & NoNaM night_mode.amxx running
[ 17] Maps Menu 1.4.1 neugomon mapsmenu.amxx running
[ 18] Pause Plugins 1.10.0.525 AMXX Dev Team pausecfg.amxx running
[ 19] [ReAPI] Weapon Restric 2.1 s1lent & neugomo weaponrest.amxx running
[ 20] Admin Models Extended 1.0 Vaqtincha reapi_admin_mod running
[ 21] [ReAPI] Block Filre in 2.1 F@nt0M reapi_block_FIT running
[ 22] Reklama Best fl0wer reklama.amxx running
[ 23] [183] Ultimate Gag 19.02.05BE SKAJIbnEJIb ultimate_gag.am running
[ 24] [Private] Chat Manager 1.1.1-11 Mistrick chatmanager.amx running
[ 25] AES: StatsX 0.6 Vega[R serfreeman1337/s aes_statsx_cstr running
[ 26] Stats Configuration 1.10.0.525 AMXX Dev Team statscfg.amxx running
[ 27] AES: StatsX Info Rank 0.1 serfreeman1337 aes_statsx_rank running
[ 28] DemoRecoder 1.1 neygomon demorec.amxx running
[ 29] [183] Ultimate Weapons 18.08.08BE SKAJIbnEJIb ultimate_weapon running
[ 30] [183] Ultimate Knife 18.12.21 SKAJIbnEJIb ultimate_knife. running
[ 31] Lite VoteBan 1.4 neygomon lite_voteban.am debug
[ 32] [Private] AFK Control 1.4.1 neygomon afk_control.amx running
[ 33] Map Spawns Editor 1.0.16 iG_os map_spawns_edit running
[ 34] Ping Checker 26.0.1 RC1 h1k3 ping_checker.am running
[ 35] [ReAPI] resetscore 1.0 Phantom resetscore.amxx running
[ 36] [Private] Damager 0.0.3 Vaqtincha damager.amxx running
[ 37] [ReAPI] Kills Counter 0.3 serfreeman1337 kills_counter.a running
[ 38] [Private] Killer Scree 0.0.5 Vaqtincha reapi_killer_sc running
[ 39] [Private] KiLL Assist 0.1 PRoSToTeM@ Kill_assist_rea running
[ 40] [ReAPI] No Team Flash 0.0.2 Vaqtincha no_team_flash.a running
[ 41] Plugins Controller 1.0 neygomon plugins_control stopped
[ 42] [Private] Parachute 3.0 Leo_[BH] & Boec[ parachute_for_a running
[ 43] [ReAPI] Best player of 0.6.1 F@nt0M best_player_of_ running
[ 44] spec_hud_info 0.1 perf spec_hud_info.a running
[ 45] Kill_sound 1.0 F@nt0M kill_sound.amxx running
[ 46] [ReAPI] Random Weapons 2.4.9 neugomon/h1k3 random_weapons_ running
[ 47] MusicImmersivePlugin 1.0 Boec[SpecOPs] zl_music.amxx running
[ 48] Game Description Advan 1.0 fl0wer gamedesc_advanc running
[ 49] unknown 1.0 unknown unknown.amxx running
[ 50] unknown unknown unknown no_choose_model running
[ 51] [ReAPI:AMXX] Buy Nades 0.1 F@nt0M Buy_Nades_Timeo running
[ 52] [183] Ultimate Flags 18.12.16 SKAJIbnEJIb ultimate_flags. running
[ 53] [183] VIP RBS 18.12.17BE SKAJIbnEJIb vip_rbs.amxx running
[ 54] ReChecker Logging freesrv custom rc_logging.amxx running
[ 55] DevMsCore 1.1 gyxoBka DevMs_Core.amxx running
[ 56] DevMs Flag 1.0 gyxoBka DevMs_Flag.amxx running
[ 57] DevMs Logger 1.0 gyxoBka DevMs_Logger.am running
[ 58] Map Manager: Core 3.0.3 Mistrick map_manager_cor running
[ 59] Map Manager: Scheduler 0.1.2 Mistrick map_manager_sch running
[ 60] Map Manager: Nominatio 0.1.0 Mistrick map_manager_nom running
[ 61] Map Manager: BlockList 0.0.3 Mistrick map_manager_blo running
[ 62] Map Manager: Effects 0.0.8 Mistrick map_manager_eff running
[ 63] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 64] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 65] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 66] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 67] AES: Bonus System 0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[ 68] AES: Bonus CSTRIKE 0.5.9 [REA serfreeman1337/s aes_bonus_cstri running
[ 69] Walls Creator 1.1 d3m37r4 walls_creator.a running
69 plugins, 68 running
- Автор плагина
- serfreeman1337
- Версия плагина
- 0.1.2
- Исходный код
-
/*
* Menu System v. 0.1.2
* by serfreeman1337 http://gf.hldm.org/
*/
#include <amxmodx>
#define PLUGIN "Menu System"
#define VERSION "0.1.2"
#define AUTHOR "serfreeman1337"
new Trie:sayCall
new Trie:cmdCall
enum _:menuItemStruct {
ISTRUCT_TITLE[128],
ISTRUCT_CMD[20]
}
public plugin_init(){
register_plugin(PLUGIN,VERSION,AUTHOR)
register_clcmd("say /help","Show_HelpMOTD")
}
public Show_HelpMOTD(id) {
show_motd(id,"help.txt","HELP")
}
public plugin_cfg(){
new cfgPath[512]
get_localinfo("amxx_configsdir",cfgPath,charsmax(cfgPath))
add(cfgPath,charsmax(cfgPath),"/menuSystem.ini")
new f = fopen(cfgPath,"r")
if(!f){
log_amx("confg file not found")
return PLUGIN_CONTINUE
}
new buffer[512],menuTitle[128],menuId = -1
while(!feof(f)){
fgets(f,buffer,charsmax(buffer))
trim(buffer)
if(!buffer[0] || buffer[0] == ';') // skip comments
continue
replace_all(buffer,charsmax(buffer),"^^n","^n") // do new lines
if(buffer[0] == '[' && buffer[strlen(buffer) - 1] == ']'){ // new menu entrie
formatex(menuTitle,strlen(buffer) - 2,"%s",buffer[1]) // parse menu title
menuId = menu_create(menuTitle,"GlobalMenu_Handler") // create new menu
new itemText[128]
formatex(itemText,charsmax(itemText),"%L",LANG_SERVER,"BACK")
menu_setprop(menuId,MPROP_BACKNAME,itemText)
formatex(itemText,charsmax(itemText),"%L",LANG_SERVER,"MORE")
menu_setprop(menuId,MPROP_NEXTNAME,itemText)
formatex(itemText,charsmax(itemText),"%L",LANG_SERVER,"EXIT")
menu_setprop(menuId,MPROP_EXITNAME,itemText)
continue
}
if(menuId == -1)
continue
if(buffer[0] == '"'){ // read menu items
new mItem[menuItemStruct]
if(parse(buffer,mItem[ISTRUCT_TITLE],charsmax(mItem[ISTRUCT_TITLE]),
mItem[ISTRUCT_CMD],charsmax(mItem[ISTRUCT_CMD])) < 2) // not engought parameters
continue
menu_additem(menuId,mItem[ISTRUCT_TITLE],mItem[ISTRUCT_CMD])
}else{ // read menu keys
new itemKey[10],itemValue[30]
#if AMXX_VERSION_NUM >= 183
strtok2(buffer,itemKey,charsmax(itemKey),itemValue,charsmax(itemValue),'=',TRIM_FULL)
#else
strtok(buffer,itemKey,charsmax(itemKey),itemValue,charsmax(itemValue),'=',1)
formatex(itemValue,charsmax(itemValue),itemValue[2])
#endif
if(strcmp(itemKey,"cmd") == 0){ // register menu call command
if(cmdCall == Invalid_Trie)
cmdCall = TrieCreate()
TrieSetCell(cmdCall,itemValue,menuId)
register_clcmd(itemValue,"GlobalCmd_Handler")
}else if(strcmp(itemKey,"say") == 0){ // register menu say call command
if(sayCall == Invalid_Trie)
sayCall = TrieCreate()
new sayCmd[64]
formatex(sayCmd,charsmax(sayCmd),"say %s",itemValue)
TrieSetCell(sayCall,itemValue,menuId)
register_clcmd(sayCmd,"GlobalCmd_Handler")
}
}
}
return PLUGIN_CONTINUE
}
// check item active
public GlobalMenu_Handler(id,m,item){
if(item == MENU_EXIT)
return PLUGIN_HANDLED
new acc[1],itemData[20]
menu_item_getinfo(m,item,acc[0],itemData,charsmax(itemData),acc,1,acc[0])
if(itemData[0])
client_cmd(id,itemData)
return PLUGIN_HANDLED
}
// call menu by command
public GlobalCmd_Handler(id){
new cmdArg[20],menuId = -1
read_argv(0,cmdArg,charsmax(cmdArg))
if(!TrieGetCell(cmdCall,cmdArg,menuId)){ // this is not command
if(strcmp(cmdArg,"say") == 0){ // this is say command
new sayArg[20]
read_argv(1,sayArg,charsmax(sayArg))
if(!TrieGetCell(sayCall,sayArg,menuId)) // no match found
return PLUGIN_HANDLED
}
}
if(menuId == -1)
return PLUGIN_HANDLED
// display menu
menu_display(id,menuId)
return PLUGIN_HANDLED
}
stock SendCmd_1( id , text[] ) {
message_begin( MSG_ONE, 51, _, id )
write_byte( strlen(text) + 2 )
write_byte( 10 )
write_string( text )
message_end()
}
Ошибка выскакивает изредка. Может вылезти раз в день или раз в неделю
В этой теме было размещено решение! Перейти к решению.
Вложения
-
3.9 KB Просмотры: 464