AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   native error (native "callfunc_begin_i") (https://forums.alliedmods.net/showthread.php?t=220523)

~Ice*shOt 07-11-2013 13:10

native error (native "callfunc_begin_i")
 
How to fix this error?

Quote:

L 07/11/2013 - 19:58:29: Public function -1 is invalid
L 07/11/2013 - 19:58:29: [AMXX] Displaying debug trace (plugin "Shop.amxx")
L 07/11/2013 - 19:58:29: [AMXX] Run time error 10: native error (native "callfunc_begin_i")
L 07/11/2013 - 19:58:29: [AMXX] [0] Shop.sma::Items_Menu (line 128 )

At3u 07-11-2013 13:40

Re: native error (native "callfunc_begin_i")
 
new func = get_func_id("Enable_Item", plugin_id)

~Ice*shOt 07-11-2013 13:46

Re: native error (native "callfunc_begin_i")
 
PHP Code:

    new Handler[32]
    
get_string(3Handlercharsmax(Handler))
    
eItemData[ItemFuncID] = get_func_id(HandlerPlugin

Have this, I made it by Exolent's tutorial

YamiKaitou 07-11-2013 14:26

Re: native error (native "callfunc_begin_i")
 
I would venture to say that the function doesn't exist

~Ice*shOt 07-11-2013 14:52

Re: native error (native "callfunc_begin_i")
 
In that my 'sub-plugin':

PHP Code:

Register_Item("Medkit"2000"Medkit_Bought")

public 
Medkit_Bought(id)
{
    
give_item(iditem_medkit)
    
HasMedkit[id] = true

    message_begin
(MSG_ONEMsgStatusIcon, {000}, id)
    
write_byte(1)
    
write_string("plus")
    
write_byte(222)
    
write_byte(255)
    
write_byte(0)
    
message_end()



YamiKaitou 07-11-2013 14:58

Re: native error (native "callfunc_begin_i")
 
Without more of the code, we can't help you

~Ice*shOt 07-12-2013 02:40

Re: native error (native "callfunc_begin_i")
 
So say, what I need to post? There are two plugins and include

YamiKaitou 07-12-2013 14:53

Re: native error (native "callfunc_begin_i")
 
Enough to be able to help you figure it out.


All times are GMT -4. The time now is 06:21.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.