- Ошибка
-
L 02/28/2019 - 17:18:55: Function "native_emj_set_jumps" was not found
L 02/28/2019 - 17:18:55: [AMXX] Displaying debug trace (plugin "reapi_multijump.amxx", version "1.6")
L 02/28/2019 - 17:18:55: [AMXX] Run time error 19: function not found
L 02/28/2019 - 17:18:55: [AMXX] [0] reapi_multijump.sma::plugin_init (line 44)
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.10.0.5245 (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: Jan 24 2019 12:14:55
Built from: https://github.com/alliedmodders/amxmodx/commit/ba083de
Build ID: 5245:ba083de
Core mode: JIT+ASM32
- Билд
-
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
-
ReGameDLL version: 5.7.0.322-dev
Build date: 11:41:14 Jan 13 2019
- Версия 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
- Список метамодулей
-
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.75 ini Start Never
[ 2] AMX Mod X RUN - amxmodx_mm_i386.so v1.10.0.5245 ini Start ANY
[ 3] Revoice RUN - revoice_mm_i386.so v0.1.0.32 ini Start Never
[ 4] POD-Bot mm RUN - podbot_mm_i386.so vV3B22 ini Chlvl 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] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 8] MySQL RUN - mysql_amxx_i386.so v1.10.0.5245 pl2 ANY ANY
[ 9] SQLite RUN - sqlite_amxx_i386.so v1.10.0.5245 pl2 ANY ANY
[10] Fun RUN - fun_amxx_i386.so v1.10.0.5245 pl2 ANY ANY
[11] Engine RUN - engine_amxx_i386.so v1.10.0.5245 pl2 ANY ANY
[12] FakeMeta RUN - fakemeta_amxx_i386.so v1.10.0.5245 pl2 ANY ANY
[13] GeoIP RUN - geoip_amxx_i386.so v1.10.0.5245 pl2 ANY ANY
[14] CStrike RUN - cstrike_amxx_i386.so v1.10.0.5245 pl2 ANY ANY
[15] CSX RUN - csx_amxx_i386.so v1.10.0.5245 pl2 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.10.0.5245 pl2 ANY ANY
[17] ReAPI RUN - reapi_amxx_i386.so v5.8.0.163-dev pl2 ANY Never
17 plugins, 17 running
- Список плагинов
-
[ 43] Deathtype Effects 1.0 anakin_cstrike deathtype_effec running
[ 44] ScreenFade 1.0 Admin Fade_random.amx running
[ 45] Auto recording demo 2.0 IzI | Bonaqua (R amx_autodemorec running
[ 46] Easy MultiJump 1.6 twistedeuphoria/ reapi_multijump running
[ 47] Parachute Lite [ReAPI] 11.0 Leo_[BH] parachute_lite. running
[ 48] Unlimited ChooseTeam ( 1.0 ConnorMcLeod & p live_to_spec.am running
[ 49] CSDM Auto Balance 1.1 incognito admin_balans.am running
[ 50] Lite Admin ESP 1.0 neygomon admin_esp.amxx running
[ 51] resetscore(ReAPI) 1.0 Phantom resetscore.amxx running
[ 52] Block Radio Commands 1.00 MaTTe radio_blok_tapa running
[ 53] Show timeleft for CSDM 1.0 neygomon timer.amxx running
[ 54] [ReAPI] Custom Models 1.6.1 neugomon custom_models.a running
[ 55] Weapon Model + Sound R 1.3 GHW_Chronic GHW_Weapon_Repl running
[ 56] Unlimited Bpammo 1.0 hlds.us patron.amxx running
[ 57] Auto-Give Privileges 1.0 SerGrib night_vips.amxx stopped
[ 58] Kill Rewards 1.6 HoLLyWooD kill_rewards.am running
[ 59] AMXX Gag 1.4.9 xPaw & Exolent amx_gag.amxx running
[ 60] Give ADMIN *SoNeeKkk SoNeeKK1 menu_donata.amx running
[ 61] Block Change Name 1.0 DJ_WEST block_change_na running
[ 62] unknown unknown unknown uron.amxx running
[ 63] Change Game Name 1.2 GoldSrc Team gamenamechanger running
[ 64] SF Warn Menu 0.1.4f serfreeman1337 sf_admin_warns. running
[ 65] Lite VoteBan 1.4 neygomon lite_voteban.am running
[ 66] Nice Kicker 2.0 sector nice_kicker.amx running
[ 67] [ReAPI] Top Awards 1.0 Dom1no_[KZ] Re_top_awards.a running
[ 68] unknown unknown unknown admchat.amxx running
[ 69] Chat Manager 1.1.1-11 Mistrick chatmanager.amx running
[ 70] Map Manager: Core 3.0.0 Mistrick map_manager_cor running
[ 71] Map Manager: Scheduler 0.1.0 Mistrick map_manager_sch running
[ 72] Map Manager: Rtv 0.0.4 Mistrick map_manager_rtv running
[ 73] Map Manager: Nominatio 0.0.8 Mistrick map_manager_nom running
[ 74] Map Manager: BlockList 0.0.3 Mistrick map_manager_blo running
[ 75] Map Manager: Online so 0.0.2 Mistrick map_manager_onl running
[ 76] Map Manager: Effects 0.0.8 Mistrick map_manager_eff running
[ 77] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 78] CSDM Core 0.1.0 wopox1337\Vaqtin csdm_core.amxx running
[ 79] CSDM Equip Manager 0.1.0 wopox1337\Vaqtin csdm_equip_mana running
[ 80] CSDM Map Cleaner 0.1.0 wopox1337\Vaqtin csdm_map_cleane running
[ 81] CSDM Misc 0.1.0 wopox1337\Vaqtin csdm_misc.amxx running
[ 82] CSDM Protection 0.1.0 wopox1337\Vaqtin csdm_protection running
[ 83] CSDM Spawn Manager 0.1.0 wopox1337\Vaqtin csdm_spawn_mana running
[ 84] V.I.P Custom Weapons 1.0.0 Vaqtincha vip_custom.amxx debug
[ 85] V.I.P Custom KNIFE 1.0.0 Vaqtincha custom_knife.am debug
[ 86] V.I.P Custom DEAGLE 1.0.0 TaPaHTyL custom_deagle.a debug
[ 87] V.I.P Custom M4A1 1.0.0 TaPaHTyL custom_m4a1.amx debug
[ 88] V.I.P Custom AK-47 1.0.0 TaPaHTyL custom_ak47.amx debug
[ 89] V.I.P Custom AWP 1.0.0 TaPaHTyL custom_awp.amxx debug
- Автор плагина
- twistedeuphoria
- Версия плагина
- 1
- Исходный код
-
#include <amxmodx>
#include <reapi>
//Uncomment to enable define to use natives emj_set_jumps / emj_remove_jumps
//#define NATIVE_ENABLE
//Uncomment to enable define for trail effect
//#define TRAIL_ENABLE
#if defined TRAIL_ENABLE
#define TRAIL_LIFE 2
#define TRAIL_SIZE 2
#define TRAIL_BRIGHTNESS 150
#define TASK_TRAIL_EFFECT_REMOVE 629372
new gl_sprite_name, emj_trail_effect
new bool:g_isTrailActive[MAX_CLIENTS] = false
new Float:g_fLastCmdTime[MAX_CLIENTS]
#endif
new g_iMaxPlayers, emj_maxjumps, emj_activeFlags[27]
new jumpnum[MAX_CLIENTS] = {0}
new bool:g_isActiveJump[MAX_CLIENTS] = false
#if defined TRAIL_ENABLE
public plugin_precache()
{
gl_sprite_name = precache_model("sprites/zbeam5.spr")
}
#endif
public plugin_init()
{
register_plugin("Easy MultiJump","1.6","twistedeuphoria/jesuspunk")
new pcvar = create_cvar("amx_emj_maxjumps","1", FCVAR_NONE, "Set max player jumps.")
bind_pcvar_num(pcvar, emj_maxjumps)
#if defined TRAIL_ENABLE
pcvar = create_cvar("amx_emjtrail_effect","2",FCVAR_NONE,"Set color type of trail line")
bind_pcvar_num(pcvar, emj_trail_effect)
#endif
pcvar = create_cvar("amx_emjadmin_only", "", FCVAR_NONE, "Flag(s) required must have player for work multijump.")
hook_cvar_change(pcvar,"emjadmin_only_callback")
bind_pcvar_string(pcvar, emj_activeFlags, charsmax(emj_activeFlags))
RegisterHookChain(RG_CBasePlayer_Jump,"CBasePlayer_Jump")
RegisterHookChain(RG_CBasePlayer_SetClientUserInfoName,"CBasePlayer_SetClientUserInfoName")
g_iMaxPlayers = get_member_game(m_nMaxPlayers)
register_native("emj_set_jumps", "native_emj_set_jumps", 1)
}
#if defined NATIVE_ENABLE
public plugin_natives ( )
{
register_native("emj_set_jumps", "native_emj_set_jumps", 1)
register_native("emj_remove_jumps", "native_emj_remove_jumps", 1)
register_native("emj_isActive", "native_emj_isActive", 1)
}
public native_emj_set_jumps(id)
{
g_isActiveJump[id] = true
}
public native_emj_remove_jumps(id)
{
g_isActiveJump[id] = false
}
public native_emj_isActive(id)
{
if(g_isActiveJump[id]) return true
else return false
}
#endif
public emjadmin_only_callback(pCvar, const OldValue[], const NewValue[])
{
for(new id = 1; id <= g_iMaxPlayers; id++)
{
g_isActiveJump[id] = _isAdmin(id)
}
}
public client_putinserver(id)
{
jumpnum[id] = 0
g_isActiveJump[id] = _isAdmin(id)
}
public CBasePlayer_SetClientUserInfoName(id, infobuffer[], szNewName[])
{
g_isActiveJump[id] = _isAdmin(id)
}
public CBasePlayer_Jump(id)
{
if(!g_isActiveJump[id] || !is_user_alive(id)) return HC_CONTINUE
new obut = get_member(id,m_afButtonLast)
if(!(get_entvar(id,var_flags) & FL_ONGROUND) && !(obut & IN_JUMP) && jumpnum[id] < emj_maxjumps)
{
static Float:velocity[3]
get_entvar(id,var_velocity,velocity)
velocity[2] = random_float(265.0,285.0)
set_entvar(id,var_velocity,velocity)
jumpnum[id]++
#if defined TRAIL_ENABLE
if(!g_isTrailActive[id] && emj_trail_effect != 0)
{
static gl_color[3]
gl_color[0] = random(255)
gl_color[1] = random(255)
gl_color[2] = random(255)
if(emj_trail_effect == 2)
{
if(get_member(id,m_iTeam) == 1)
{
gl_color[0] = 255
gl_color[1] = 0
gl_color[2] = 0
}
else
{
gl_color[0] = 0
gl_color[1] = 0
gl_color[2] = 255
}
}
do_trail_effect(id,gl_color)
}
g_fLastCmdTime[id] = get_gametime ();
#endif
}
else if(get_entvar(id,var_flags) & FL_ONGROUND)
{
jumpnum[id] = 0
#if defined TRAIL_ENABLE
if(g_isTrailActive[id]) set_task(1.0,"remove_trail_effect",id+TASK_TRAIL_EFFECT_REMOVE,_,_,"a",1)
#endif
}
return HC_CONTINUE
}
#if defined TRAIL_ENABLE
public do_trail_effect(id,gl_color[3])
{
g_isTrailActive[id] = true
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(22) // TE_BEAMFOLLOW
write_short(id)
write_short(gl_sprite_name)
write_byte(TRAIL_LIFE*10)
write_byte(TRAIL_SIZE)
write_byte(gl_color[0])
write_byte(gl_color[1])
write_byte(gl_color[2])
write_byte(TRAIL_BRIGHTNESS)
message_end()
set_task(1.0,"remove_trail_effect",id+TASK_TRAIL_EFFECT_REMOVE,_,_,"a",1)
}
public remove_trail_effect(id)
{
if(!g_isTrailActive[id-TASK_TRAIL_EFFECT_REMOVE]) return PLUGIN_HANDLED
new Float:fGameTime = get_gametime()
if(fGameTime-g_fLastCmdTime[id-TASK_TRAIL_EFFECT_REMOVE] < 1.35)
{
remove_task(id+TASK_TRAIL_EFFECT_REMOVE)
set_task(1.0,"remove_trail_effect",id,_,_,"a",1)
}
else
{
g_isTrailActive[id-TASK_TRAIL_EFFECT_REMOVE] = false
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(99) // TE_KILLBEAM
write_short(id-TASK_TRAIL_EFFECT_REMOVE)
message_end()
}
return PLUGIN_CONTINUE
}
#endif
stock bool:_isAdmin(id)
{
if(is_user_bot(id)) return false
if(strlen(emj_activeFlags) == 0) return true
else
{
if(get_user_flags(id) & read_flags(emj_activeFlags)) return true
else return false
}
}
Здравствуйте. Выдаеться всем. квары прописаны а в консоле ошибка
Код:
amx_emj_maxjumps 3 //количество прыжков
amx_emj_adminonly «as» //флаги для админов, пустая строчка amx_mjadminonly "" для всех
amx_emjtrail_effect 1 //0 - отключить эффект, 1 - разные цвета линии, 2 -цвета команды(по умолчанию)
В этой теме было размещено решение! Перейти к решению.