Участник
Пользователь
- Сообщения
- 281
- Реакции
- 196
- Помог
- 1 раз(а)
- Ошибка
-
L 03/11/2019 - 23:27:42: [AMXX] Displaying debug trace (plugin "BonusSystem.amxx", version "1.1")
L 03/11/2019 - 23:27:42: [AMXX] Run time error 10: native error (native "give_item")
L 03/11/2019 - 23:27:42: [AMXX] [0] BonusSystem.sma::SpawnItem (line 96)
L 03/11/2019 - 23:27:42: [AMXX] [1] BonusSystem.sma::PlayerSpawn (line 87)
- ОС
- Linux
- Amx Mod X
-
22:29:03 amxx version
22:29:05 AMX Mod X 1.10.0.5250 (http://www.amxmodx.org)
Authors:
<TAB>David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
<TAB>Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
<TAB>Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
<TAB>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
- Билд
-
22:29:32 version
22:29:33 Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.4.0.668-dev
Build date: 09:47:42 Sep 29 2018 (1631)
Build from: https://github.com/dreamstalker/rehlds/commit/89be216
- ReGamedll
-
22:29:49 game version
22:29:49 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
-
22:30:06 meta version
22:30:06 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
- Список метамодулей
-
22:30:44 meta list
22:30:44 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] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 3] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 4] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 5] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 6] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC3 ini ANY ANY
[ 7] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.8 ini Chlvl ANY
[ 8] AMX Mod X RUN - amxmodx_mm_i386.so v1.10.0.5250 ini Start ANY
[ 9] ReAPI RUN - reapi_amxx_i386.so v5.8.0.163-dev pl8 ANY Never
[10] ReParachute RUN - parachute_amxx_i386.so v1.1 Beta pl8 ANY ANY
[11] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl8 ANY Never
[12] FakeMeta RUN - fakemeta_amxx_i386.so v1.10.0.5250 pl8 ANY ANY
[13] Engine RUN - engine_amxx_i386.so v1.10.0.5250 pl8 ANY ANY
[14] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.10.0.5250 pl8 ANY ANY
[15] MySQL RUN - mysql_amxx_i386.so v1.10.0.5250 pl8 ANY ANY
[16] CStrike RUN - cstrike_amxx_i386.so v1.10.0.5250 pl8 ANY ANY
[17] Fun RUN - fun_amxx_i386.so v1.10.0.5250 pl8 ANY ANY
[18] CSX RUN - csx_amxx_i386.so v1.10.0.5250 pl8 ANY ANY
18 plugins, 18 running
- Список плагинов
-
22:31:01 amxx plugins
22:31:01 Currently loaded plugins:
name version author file status
[ 1] Anticheat 3.1.6 ctr52 anticheat.amxx running
[ 2] Lite Admin ESP 1.0 neygomon admin_esp.amxx running
[ 3] [ReAPI] AdminFreeLook 1.0 ReHLDS Team adminfreelook.a running
[ 4] Admin Load 3.10.0 F@nt0M adminload.amxx running
[ 5] CS AFK Manager 1.0.6 (amx Freeman afk_manager.amx running
[ 6] AutoRestart 1.0 neygomon auto_rr.amxx running
[ 7] Lite VoteBan 1.4 neygomon lite_voteban.am running
[ 8] Ping Checker 26.0.1 RC1 h1k3 ping_checker.am running
[ 9] ScreenMaker 1.1 neygomon screen_maker.am running
[ 10] AMXX BanCfg 0.95 Safety1st amx_bancfg.amxx running
[ 11] Admin Voice Chat 0.2 mx?! admin_voice_cha running
[ 12] Advanced Client Checke 0.3.6 Mistrick cmdchecker.amxx running
[ 13] Rechecker Log 0.1 F@nt0M rc_log.amxx running
[ 14] Yet Another Voteban 1.8 AndrewZ/voed yet_another_vot running
22:31:01 [ 15] Invisible Spectator 1.0 ReHLDS Team invisible_spect running
[ 16] WebHS 0.1 kanagava fb_web_online.a running
[ 17] FreshBans 1.4.0b kanagava fresh_bans_140_ running
[ 18] [183] Ultimate Gag 17.12.22BE SKAJIbnEJIb ultimate_gag.am running
[ 19] [ReAPI][183] Ultimate 17.08.28 SKAJIbnEJIb ultimate_gag_re running
[ 20] [183] FunGun Updater 17.10.30 SKAJIbnEJIb FunGunUpdater.a stopped
[ 21] Admin Commands Log 1.1 w0w admin_commands_ running
[ 22] DopBan 3.0.3b kanagava dop_ban303_.amx running
[ 23] Check GSClient 1.0 Dev-MS Team check_gsclient. running
[ 24] Bonus System 1.1 Dom1no_[KZ] BonusSystem.amx debug
[ 25] Admin Commands 1.10.0.525 AMXX Dev Team admincmd.amxx running
[ 26] Menus Front-End 1.5 neugomon menufront_end.a running
[ 27] Commands Menu 1.10.0.525 AMXX Dev Team cmdmenu.amxx running
[ 28] Players Menu 1.7 neugomon players_menu.am running
[ 29] Maps Menu 1.10.0.525 AMXX Dev Team mapsmenu.amxx running
22:31:01 [ 30] Admin Chat 1.10.0.525 AMXX Dev Team adminchat.amxx running
[ 31] Admin Votes 1.10.0.525 AMXX Dev Team adminvote.amxx running
[ 32] Map Manager 2.5.61 Mistrick mapmanager.amxx running
[ 33] Pause Plugins 1.10.0.525 AMXX Dev Team pausecfg.amxx running
[ 34] [183] CsStats MySQL 18.08.09 SKAJIbnEJIb csstats_mysql.a running
[ 35] [183] Skill ELO 18.03.24 SKAJIbnEJIb skill_elo.amxx running
[ 36] Stats Configuration 18.05.15 SKAJIbnEJIb & AM statscfg_rbs.am running
[ 37] [183] StatsX RBS 18.03.24 SKAJIbnEJIb & AM statsx_rbs.amxx running
[ 38] [ReAPI] Lite TeamBalan 2.3 neugomon lite_balancer_2 running
[ 39] [ReAPI] AWPoff 1.3 PAffAEJIkA :3 awp_off.amxx running
[ 40] Awersome Messages 0.3 F@nt0M aw_messages.amx running
[ 41] c4 timer 1.1 cheap_suit c4timer.amxx running
[ 42] Demo Recorder 2.4.0 F@nt0M demo_recorder.a running
[ 43] Descriptive 'Fire in t 0.1 VEN descriptive_fir running
[ 44] [reAPI] Flash Control 1.1 neugomon flash_control.a running
22:31:01 [ 45] InfoConnects 1.0 PAffAEJIkA :3 infoconnects.am running
[ 46] Kills Counter 1.0 Safety1st killscounter.am running
[ 47] Knife Duel with Telepo 1.2 neygomon knife_duel.amxx running
[ 48] Multiplication Kill Mo 0.0.2 Vaqtincha multiplication_ running
[ 49] Real Damage [ReApi] 1.0 Leo_[BH] real_damage.amx running
[ 50] [ReAPI] Kill Rewards 0.0.3 Vaqtincha reapi_kill_rewa running
[ 51] Replace Info Message 2.3 maeStro aka 9iky replace_info_ms running
[ 52] resetscore(ReAPI) 1.0 Phantom resetscore.amxx running
[ 53] ResetStats 1.0 SomeScripter ResetStats.amxx running
[ 54] WeaponState Remember 0.0.4 Vaqtincha weaponstate_rem running
[ 55] [ReAPI] Custom Models 1.6.1 neugomon custom_models.a running
[ 56] InName Combo Kills 0.0.2 wopox1337 InName_Combo_Ki running
[ 57] DevMsCore 1.2 gyxoBka DevMs_Core.amxx running
[ 58] DevMs Logger 1.1 gyxoBka DevMs_Logger.am running
[ 59] Mode 2x2 2.5re s1lent mode.amxx running
22:31:01 [ 60] Killer ScreenFade 0.0.5 Vaqtincha reapi_killer_sc running
[ 61] Items Restrict 1.0 s1lent items_restrict. running
[ 62] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 63] Recoil Control 1.5 OT recoil_control. running
[ 64] Map List Generator 1.3 Leo_[BH] mapslist_genera running
[ 65] Online Helper 1.0.1 Nordic Warrior online_helper.a running
[ 66] [183] Army Ranks Ultim 18.05.15 SKAJIbnEJIb army_ranks_ulti running
[ 67] [183] Kill Assist RBS 17.10.30 Digi & SKAJIbnEJ killassist_rbs. running
[ 68] [183] Maps Helper 17.10.30 SKAJIbnEJIb maps_helper.amx running
[ 69] [183] Ultimate Informe 17.10.30 SKAJIbnEJIb ultimate_inform running
[ 70] [ReAMX] Damager RBS 17.12.22 SKAJIbnEJIb damager_rbs.amx running
[ 71] [183] BackWeapons RBS 17.08.11 SKAJIbnEJIb & ho backweapons_rbs running
[ 72] Player Health Regen 1.1 neugomon player_regen.am running
[ 73] Radio Hudmsg Block 1.0 AcE radio_hudmsg_bl running
[ 74] [183] Chat RBS 19.02.22 SKAJIbnEJIb chat_rbs.amxx running
22:31:01 [ 75] Sound CSO 1.2 TBONTB Sound_CSO.amxx running
[ 76] [ReVIP] System Core 2.5 full pUzzlik re_vip_core.amx running
[ 77] [ReVIP] Menu 2.5 full pUzzlik re_vip_menu.amx running
[ 78] [ReVIP] Connected Info 2.5 full pUzzlik re_vip_connect_ running
[ 79] [ReVIP] Tab Info 2.5 full pUzzlik re_vip_tab_info running
[ 80] [ReVIP] Add HP 2.5 full pUzzlik re_vip_hp_add.a running
[ 81] [ReVIP] Model 2.5 full pUzzlik re_vip_models.a running
[ 82] [ReVIP] Custom Shop 2.5 full pUzzlik re_vip_shop.amx running
[ 83] [ReVIP] Custom Knife 2.5 full pUzzlik re_vip_custom_k running
[ 84] [ReVIP] Custom Deagle 2.5 full pUzzlik re_vip_custom_d running
[ 85] [ReVIP] Custom Famas 2.5 full pUzzlik re_vip_custom_f running
[ 86] [ReVIP] Custom AK-47 2.5 full pUzzlik re_vip_custom_a running
[ 87] [ReVIP] Custom M4A1 2.5 full pUzzlik re_vip_custom_m running
[ 88] [ReVIP] Custom Scout 2.5 full pUzzlik re_vip_custom_s running
[ 89] [ReVIP] Custom AWP 2.5 full pUzzlik re_vip_custom_a running
89 plugins, 88 running
- Автор плагина
- #define AUTHOR "Dom1no_[KZ]"
- Версия плагина
- #define VERSION "1.1"
- Исходный код
-
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#define PLUGIN "Bonus System"
#define VERSION "1.1"
#define AUTHOR "Dom1no_[KZ]"
enum _:SPAWN_DATA
{
ITEM_S[32], VALUE_S
};
new bool:g_iBlockMap;
new gRoundNumber;
#define BLOCK_MAPS "awp_", "35hp_", "aim_", "$_"
// Блокируемые карты
#define AUTH_TYPE 1
// 0 - Бонус для всех игроков
// 1 - Бонус для игроков с флагом
#define ACCESS_FLAG "o"
// Флаг который дает бонуса
#define SPAWN_ROUND 3
// Раунд для выдачи аммуниции
new g_iSpawnData[][SPAWN_DATA] = // Настройка аммуниции
{
// "оружие/жизнь/броня/деньги/щипцы" "патроны/кол-во"
{ "weapon_deagle", 65 },
{ "health", 10 },
{ "armor", 10 },
{ "money", 1000 },
{ "grenade", 1 },
{ "flashbang", 2 },
{ "smokegrenade", 1 },
{ "vesthelm", 100 }
};
/* Массивы, не трогать */
#if !defined MAX_PLAYERS
const MAX_PLAYERS = 32;
#endif
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
RegisterHam(Ham_Spawn, "player", "PlayerSpawn", 1)
register_event("HLTV", "StartRound", "a", "1=0", "2=0")
register_event("TextMsg", "RestartRound", "a", "2=#Game_Commencing", "2=#Game_will_restart_in")
new g_MapName[32], g_MapPrefix[][] = { BLOCK_MAPS };
get_mapname(g_MapName, charsmax(g_MapName))
for(new i; i < sizeof g_MapPrefix; i++)
{
if(containi(g_MapName, g_MapPrefix[i]) != -1)
g_iBlockMap = true
}
}
public StartRound()
{
gRoundNumber++
}
public RestartRound()
{
gRoundNumber = 1
}
public PlayerSpawn(id)
{
if(g_iBlockMap)
return;
#if AUTH_TYPE == 1
if(get_user_flags(id) & read_flags(ACCESS_FLAG) && gRoundNumber > SPAWN_ROUND)
#else
if(gRoundNumber > SPAWN_ROUND)
#endif
for(new i; i < sizeof g_iSpawnData; i++)
SpawnItem(id, g_iSpawnData[i][ITEM_S], g_iSpawnData[i][VALUE_S]);
}
SpawnItem(id, szItem[], iValue)
{
switch(szItem[0])
{
case 'w':
{
give_item(id, "weapon_deagle");
cs_set_user_bpammo(id, CSW_DEAGLE, iValue);
}
case 'g':
{
give_item(id, "weapon_hegrenade");
cs_set_user_bpammo(id, CSW_HEGRENADE, iValue);
}
case 'f':
{
give_item(id,"weapon_flashbang");
cs_set_user_bpammo(id, CSW_FLASHBANG, iValue);
}
case 's':
{
give_item(id,"weapon_smokegrenade");
cs_set_user_bpammo(id, CSW_SMOKEGRENADE, iValue);
}
case 'h':
{
set_user_health(id, (get_user_health(id) + iValue));
}
case 'a':
{
cs_set_user_armor(id, iValue, CS_ARMOR_KEVLAR)
}
case 'v':
{
cs_set_user_armor(id, iValue, CS_ARMOR_VESTHELM)
}
case 'm':
{
cs_set_user_money(id, cs_get_user_money(id) + iValue)
}
}
}
Ну вроде как плагин работает, все дает, но постоянно вылазит эта ошибка.
L 03/11/2019 - 21:29:09: [FUN] Invalid player 4
L 03/11/2019 - 21:29:09: [AMXX] Displaying debug trace (plugin "BonusSystem.amxx", version "1.1")
L 03/11/2019 - 21:29:09: [AMXX] Run time error 10: native error (native "give_item")
L 03/11/2019 - 21:29:09: [AMXX] [0] BonusSystem.sma::SpawnItem (line 96)
L 03/11/2019 - 21:29:09: [AMXX] [1] BonusSystem.sma::PlayerSpawn (line 87)
Помогите его отремонтировать)
L 03/11/2019 - 21:29:09: [FUN] Invalid player 4
L 03/11/2019 - 21:29:09: [AMXX] Displaying debug trace (plugin "BonusSystem.amxx", version "1.1")
L 03/11/2019 - 21:29:09: [AMXX] Run time error 10: native error (native "give_item")
L 03/11/2019 - 21:29:09: [AMXX] [0] BonusSystem.sma::SpawnItem (line 96)
L 03/11/2019 - 21:29:09: [AMXX] [1] BonusSystem.sma::PlayerSpawn (line 87)
Помогите его отремонтировать)
В этой теме было размещено решение! Перейти к решению.