Участник
Пользователь
- Сообщения
- 57
- Реакции
- 5
- Ошибка
-
L 01/17/2024 - 18:16:28: Invalid event (name "PlayerRunCmd") (plugin "speedchecker.amxx")
L 01/17/2024 - 18:16:28: [AMXX] Displaying debug trace (plugin "speedchecker.amxx", version "1.0")
L 01/17/2024 - 18:16:28: [AMXX] Run time error 10: native error (native "register_event")
L 01/17/2024 - 18:16:28: [AMXX] [0] speedchecker.sma::plugin_init (line 10)
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.10.0.5435 (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: Aug 7 2021 08:32:30
Built from: https://github.com/alliedmodders/amxmodx/commit/36d5aa9
Build ID: 5435:36d5aa9
Core mode: JIT+ASM32
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.13.0.788-dev
Build date: 07:36:33 Jul 12 2023 (3378)
Build from: https://github.com/dreamstalker/rehlds/commit/f955b07
- ReGamedll
-
ReGameDLL version: 5.26.0.668-dev
Build date: 19:02:48 Dec 31 2023
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/d3c0ec8
- Версия Metamod
-
Metamod-r v1.3.0.131, API (5:13)
Metamod-r build: 18:51:02 Jul 11 2022
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/adc9414
- Список метамодулей
-
[ 1] AMX Mod X RUN - amxmodx.so v1.10.0.5435 ini Start ANY
[ 2] ReAuthCheck fail load reauthcheck.so v0.1.6 ini Start Never
[ 3] Reunion fail load reunion.so v0.1.92d ini Start Never
[ 4] Revoice fail load revoice.so v0.1.0.34 ini Start Never
[ 5] HitBox Fix RUN - hitbox_fix.so v1.1.2 ini Start ANY
[ 6] CStrike RUN - cstrike_amxx_i386.so v1.10.0.5435 pl1 ANY ANY
[ 7] CSX RUN - csx_amxx_i386.so v1.10.0.5435 pl1 ANY ANY
[ 8] ReAPI RUN - reapi_amxx_i386.so v5.24.0.300-dev pl1 ANY Never
[ 9] Engine RUN - engine_amxx_i386.so v1.10.0.5435 pl1 ANY ANY
[10] FakeMeta RUN - fakemeta_amxx_i386.so v1.10.0.5435 pl1 ANY ANY
[11] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.10.0.5435 pl1 ANY ANY
[12] MySQL RUN - mysql_amxx_i386.so v1.10.0.5435 pl1 ANY ANY
[13] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl1 ANY Never
13 plugins, 10 running
- Список плагинов
-
[ 1] 1 Admin Loader 3.5 neygomon unknown admin_loade running
[ 2] 2 Accuracy Fix 3.0 Numb unknown accuracy_fi running
[ 3] 3 FreshBans 1.4.8b kanagava unknown fresh_bans. running
[ 4] 4 Admin Chat 1.10.0.543 AMXX Dev Team adminchat.a running
[ 5] 5 Admin Commands 1.10.0.543 AMXX Dev Team admincmd.am running
[ 6] 6 Commands Menu 1.10.0.543 AMXX Dev Team cmdmenu.amx running
[ 7] 7 Menus Front-End 1.10.0.543 AMXX Dev Team menufront.a running
[ 8 ] 8 Maps Menu 1.10.0.543 AMXX Dev Team mapsmenu.am running
[ 9 ] 9 Players Menu 1.10.0.543 AMXX Dev Team plmenu.amxx running
[ 10] 10 Restrict Weapons 1.10.0.543 AMXX Dev Team restmenu.am running
[ 11] 11 unknown unknown unknown unknown unreal_anti error
[ 12] 12 Smoke FIX 0.1 many unknown smoke_fix.a running
[ 13] 13 unknown unknown unknown unknown brushblock. running
[ 14] 14 MSL/Emulator 1.2 Juice & Mistrick unknown msl_strafeh running
[ 15] 15 Showkeys 1.1 vato loco & medu unknown showkeys.am running
[ 16] 16 Unreal Cheater Cry 1.0.12 Karaulov unknown unreal_chea running
[ 17] 17 Damager 2.0 Prayer unknown damager.amx running
[ 18] 18 Magic Marker 3.1 stupok69 unknown magic_marke running
[ 19] 19 Admin Prefixes 4.1 m0skVi4a ;] unknown admin_prefi running
[ 20] 20 ReAimDetector API 0.2.2 ReHLDS Team unknown reaimdetect running
[ 21] 21 Hibernate 1.0.0 Maxpain unknown hibernate.a running
[ 222] 22 <Addon> Speed Checker 1.0 press2p unknown speedchecke debug
23 plugins
- Автор плагина
- press2p
- Версия плагина
- 1.0
- Исходный код
-
// my first plugin :D
#include <amxmodx>
new cvar_speed_check;
public plugin_init() {
register_plugin("<Addon> Speed Checker", "1.0", "press2p");
register_event("PlayerRunCmd", "SpeedCheck_PlayerRunCmd", "a", "1=0");
cvar_speed_check = register_cvar("speed_check", "1");
}
public SpeedCheck_PlayerRunCmd(id) {
const max_speed = 380;
new vel[3];
get_user_origin(id, vel);
new speed = sqroot(vel[0] * vel[0] + vel[1] * vel[1] + vel[2] * vel[2]);
if(is_user_alive(id) && get_pcvar_num(cvar_speed_check) && speed > max_speed) {
client_print(id, print_chat, "Допущено превышение максимально допустимой скорости, сорянчик");
client_cmd(id, "disconnect");
}
}
привет всем, при работе плагина в консоль спаммятся данные ошибки:
есть решение?
есть решение?
В этой теме было размещено решение! Перейти к решению.