Run time error 10: native error (native "callfunc_begin_i")

Šiame forume rašomi vartotojų klausimai/problemos su kuriomis jie susidūrė kuriant pluginus.
User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Run time error 10: native error (native "callfunc_begin_i")

Post by laimiukas3 »

gal kas galite padeti niekaip negaliu susitvarkyti

Code: Select all

01:21:42 L 12/23/2016 - 01:20:20: [AMXX] Displaying debug trace (plugin "unlock_m3.amxx", version "1.0")01:21:42 L 12/23/2016 - 01:20:20: [AMXX] Run time error 10: native error (native "callfunc_begin_i")01:21:42 L 12/23/2016 - 01:20:20: [AMXX]    [0] gunxpmod.inc::register_gxm_item (line 115)01:21:42 L 12/23/2016 - 01:20:20: [AMXX]    [1] unlock_m3.sma::plugin_init (line 35)01:21:42 L 12/23/2016 - 01:20:20: Public function -1 is invalid

Code: Select all

#include <amxmodx>#include <fakemeta>#include <hamsandwich>#include <xs>#include <gunxpmod>#include <engine>#include <cstrike> new PLUGIN_NAME[]     = "Gun M3"new PLUGIN_AUTHOR[]   = "xbatista"new PLUGIN_VERSION[]  = "1.0" new const WEAPON_V_MDL[] = "models/GunXP/Rifle/v_m3.mdl";#define WEAPON_CSW CSW_M3new const weapon_n[] = "weapon_m3"; const m_pPlayer = 41;const m_flPrimaryAttack = 46;const m_iClip = 51; #define IsPlayer(%1)  ( 1 <= %1 <= g_maxplayers ) new g_hasZoom[33]; new damage_weapon, pCvarRof, weapon_recoil;new g_maxplayers;   new bool:g_Weapon[33]; new Float:cl_pushangle[33][3];new szClip, szAmmo; public plugin_init() {    register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)     register_gxm_item("M3 -Clip -Aim -Rate +Powers +Scope +Recoil", "-Clip -Aim -Rate +Powers +Scope +Recoil", 2220, 14, GUN_SECTION_RIFLE, 0, CSW_M3)     damage_weapon = register_cvar("gxm_damage_m3","2.8");      pCvarRof = register_cvar( "m3_rof", "0.12" );              weapon_recoil = register_cvar( "m3_recoil", "1.0" );        register_event("CurWeapon", "Event_CurWeapon", "be", "1=1");        RegisterHam( Ham_Weapon_PrimaryAttack, weapon_n, "Fwd_AttackSpeedPost" , 1 );    RegisterHam(Ham_Weapon_PrimaryAttack, weapon_n, "Fwd_AttackSpeedPre");     RegisterHam(Ham_TakeDamage, "player", "Ham_DamageWeapon");     register_forward( FM_CmdStart, "Fwd_CmdStart" );     g_maxplayers = get_maxplayers();} public gxm_item_enabled(id) {    g_Weapon[id] = true;} public client_connect(id) {    g_Weapon[id] = false;} public plugin_precache()  {    engfunc(EngFunc_PrecacheModel, WEAPON_V_MDL);} public Fwd_AttackSpeedPre(Ent){    new id = pev(Ent,pev_owner);    entity_get_vector( id, EV_VEC_punchangle, cl_pushangle[id]);} public Fwd_AttackSpeedPost( const Entity ){    static id ; id = get_pdata_cbase(Entity, m_pPlayer, 4)    if (g_Weapon[id] && IsPlayer(id) )    {        if ( pev_valid(Entity) )        {            static iClip ; iClip = get_pdata_int(Entity, m_iClip, 4)             if ( iClip > 4 )            {                set_pdata_int(Entity, m_iClip, iClip - 3, 4)            }            else if ( iClip <= 4 )            {                set_pdata_int(Entity, m_iClip, 0, 4)            }        }         set_pdata_float( Entity, m_flPrimaryAttack, get_pcvar_float( pCvarRof ), 4 );         new Float:push[3];        entity_get_vector( id, EV_VEC_punchangle, cl_pushangle[id]);        xs_vec_sub( push, cl_pushangle[id], push);        xs_vec_mul_scalar( push, get_pcvar_float( weapon_recoil ), push);        xs_vec_add( push, cl_pushangle[id], push);        entity_set_vector( id, EV_VEC_punchangle, push);    }} public Ham_DamageWeapon(id, inflictor, attacker, Float:damage, damagebits) {    if ( !IsPlayer(attacker) || !g_Weapon[attacker] )            return HAM_IGNORED;      new weapon2 = get_user_weapon(attacker, _, _);    if( weapon2 == WEAPON_CSW)    {        SetHamParamFloat(4, damage * get_pcvar_float(damage_weapon));        return HAM_HANDLED;    }     return HAM_IGNORED;} public Event_CurWeapon(id) {    if ( !g_Weapon[id] || !is_user_alive(id) )    return PLUGIN_CONTINUE;     new Gun = read_data(2)      if( Gun == WEAPON_CSW)    {        entity_set_string(id, EV_SZ_viewmodel, WEAPON_V_MDL)    }     return PLUGIN_CONTINUE;} public Fwd_CmdStart( id, uc_handle, seed ){    if( !is_user_alive( id ) || !g_Weapon[id] )         return FMRES_IGNORED;     if( ( get_uc( uc_handle, UC_Buttons ) & IN_ATTACK2 ) && !( pev( id, pev_oldbuttons ) & IN_ATTACK2 ) )    {        new szWeapID = get_user_weapon( id, szClip, szAmmo )         if( szWeapID == WEAPON_CSW && !g_hasZoom[ id ])        {            g_hasZoom[ id ] = true            cs_set_user_zoom( id, CS_SET_AUGSG552_ZOOM, 1 )        }         else         {   if( g_hasZoom[ id ] )            {                g_hasZoom[ id ] = false                cs_set_user_zoom( id,  CS_RESET_ZOOM, 0 )            }        }         return FMRES_HANDLED;    }     return FMRES_IGNORED;}
Image
Image
Image

Terror
Senbūvis
Posts: 1086
Joined: 2015 Feb 27 19:29
Location: Alytus

Re: Run time error 10: native error (native "callfunc_begin_

Post by Terror »

gunxpmod.inc parodyk eilute register_gxm_item arba susisiekti per skype :liux:

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: Run time error 10: native error (native "callfunc_begin_

Post by laimiukas3 »

inc
Attachments
gunxpmod.inc
(4.82 KiB) Downloaded 803 times
Image
Image
Image

InvIs2
Jau po truputį tampa savu
Posts: 149
Joined: 2013 Sep 29 12:47
Skype: pksoldierlt

Re: Run time error 10: native error (native "callfunc_begin_

Post by InvIs2 »

Čia ne includes bėdos, o plugino. Reikia žiūrėti kodėl -1 grąžina. Šiaip, matau, Tautvydo pluginas, tai jis ir turėtų tvarkyti :)

Terror
Senbūvis
Posts: 1086
Joined: 2015 Feb 27 19:29
Location: Alytus

Re: Run time error 10: native error (native "callfunc_begin_

Post by Terror »

neteisingas unlockų registravimas arba naujas gunxp shop kuris turi kitą unlockų registravimą.

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: Run time error 10: native error (native "callfunc_begin_

Post by laimiukas3 »

InvIs2 wrote:Čia ne includes bėdos, o plugino. Reikia žiūrėti kodėl -1 grąžina. Šiaip, matau, Tautvydo pluginas, tai jis ir turėtų tvarkyti :)
kdl tautvio nurodyta kad xbatista siunciau berots is https://www.supergames.lt
new PLUGIN_NAME[] = "Ginklas M3"
new PLUGIN_AUTHOR[] = "xbatista"
new PLUGIN_VERSION[] = "1.0"
kaip supratau ne jusu jegoms tai sutvarkyti teks paciam :2D:
Image
Image
Image

User avatar
psychical
Viršininkas
Posts: 2094
Joined: 2011 Mar 12 22:19
Skype: tautvydas11
Location: Linksmakalnis
Contact:

Re: Run time error 10: native error (native "callfunc_begin_

Post by psychical »

1. Aš retai kada pasikeičiu "kreditus".
2. Unlock'as taikytas mano pluginai, su nei vienu kitu gunxp neveiks.
3. O kadangi padalintas, kas pirkę senai projektų nebeturi, aš klaidų netaisau :D (P.S. Čia klaidos nėra)

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: Run time error 10: native error (native "callfunc_begin_

Post by laimiukas3 »

kazkas labai labai tamsaus.
Image
Image
Image

KaimyneliS
Jau po truputį tampa savu
Posts: 166
Joined: 2015 Dec 24 14:55
Location: Kaunas

Re: Run time error 10: native error (native "callfunc_begin_

Post by KaimyneliS »

laimiukas3 wrote:kazkas labai labai tamsaus.
Pabandyk su šitu man bent jau veike :)
Attachments
gunxpmod.inc
(3.97 KiB) Downloaded 752 times
Ačiū kad padedate pradedančiajam :)

Image

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: Run time error 10: native error (native "callfunc_begin_

Post by laimiukas3 »

KaimyneliS wrote:
laimiukas3 wrote:kazkas labai labai tamsaus.
Pabandyk su šitu man bent jau veike :)
jop loguose situ klaidu neberandu dekui
Image
Image
Image

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 11 guests