Raised This Month: $ Target: $400
 0% 

function not found


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-09-2010 , 13:16   function not found
Reply With Quote #1

Hi, again it's me with my jb problems.
now i get an error but i can't find find the problem.

This is the error:
PHP Code:
19:06:15 L 03/09/2010 19:02:32: [AMXXDisplaying debug trace (plugin "jailbreak_main.amxx")
19:06:15 L 03/09/2010 19:02:32: [AMXXRun time error 19: function not found 
19
:06:15 L 03/09/2010 19:02:32: [AMXX]    [0jailbreak_main.sma::plugin_init (line 120
and the plugin:
PHP Code:
/* Plugin made by Toast. Ultimate All In One Jailbreak Mod/ ©2009 , Toast's Plugins. */
/* Always feel free to edit my codes, but please give me credit for them.*/

#include <amxmodx>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#include <fakemeta>
#include <engine>


#define PLUGIN "Ultimate all in one Jailbreak mod"
#define VERSION "1.0"
#define AUTHOR "Toast"

#define OFFSET_PRIMARYWEAPON        116

new g_iGameNamer
new Trie:g_tBuyCommands
new g_iMaxPlayers


new const szBuyCommands[][] =
{
    
"usp""glock""deagle""p228""elites",
    
"fn57""m3""xm1014""mp5""tmp""p90",
    
"mac10""ump45""ak47""galil""famas",
    
"sg552""m4a1""aug""scout""awp""g3sg1",
    
"sg550""m249""vest""vesthelm""flash",
    
"hegren""sgren""defuser""nvgs""shield",
    
"primammo""secammo""km45""9x19mm""nighthawk",
    
"228compact""fiveseven""12gauge""autoshotgun",
    
"mp""c90""cv47""defender""clarion""krieg552",
    
"bullpup""magnum""d3au1""krieg550"
    
"buy""buyammo1""buyammo2""buyequip""cl_autobuy",
    
"cl_rebuy""cl_setautobuy""cl_setrebuy"
}

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_event("HLTV""event_round_start""a""1=0""2=0");
    
    
register_forward(FM_GetGameDescription"GameDesc")
    
    
g_iGameNamer register_cvar("amx_gamename""DC Jailbreak")
    
    
RegisterHam(Ham_Spawn"player""PlayerSpawn"1)
    
    
g_tBuyCommands TrieCreate();
    for(new 
0sizeof(szBuyCommands); i++)
    {
        
TrieSetCell(g_tBuyCommandsszBuyCommands[i], i);
    }
}

public 
plugin_cfg()
{
    
g_iMaxPlayers get_maxplayers()
}
public 
PlayerSpawn(id)

    for( new 
1<= g_iMaxPlayers i++ )
    {
        if(!
is_user_connected(id)
        ||(
is_user_bot(id))
        ||(!
is_user_alive(id)))
        {
            return 
PLUGIN_HANDLED
        
}

        {
            
set_user_rendering(idkRenderFxGlowShell000kRenderNormal20)
            
set_pdata_int(idOFFSET_PRIMARYWEAPON0)
            
set_task(1.0"strip_weapons"id)
        }
    }
    return 
PLUGIN_HANDLED
}

public 
GameDesc()

    static 
gamename[32]

    
get_pcvar_string(g_iGameNamergamename31)
    
forward_return(FMV_STRINGgamename)
    return 
FMRES_SUPERCEDE
}

public 
Player_Jump(id)
{
    if( 
is_user_alive(id) && entity_get_float(idEV_FL_fuser2) > 0.0 )
    {
        
entity_set_float(idEV_FL_fuser20.0)
    }
}


public 
client_command(client)
{
    if(!
is_user_alive(client))
    {
        return 
PLUGIN_CONTINUE
    
}

    static 
szArg[15]

    if(
read_argv(0szArg14) > 13)
    {
        return 
PLUGIN_CONTINUE
    
}

    
strtolower(szArg);
    if(
TrieKeyExists(g_tBuyCommandsszArg)
    && (
<< (_:cs_get_user_team(client)) & ((<<(_:CS_TEAM_T)) | (<<(_:CS_TEAM_CT)))))
    {
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE
}

public 
strip_weapons(id)
{
    
strip_user_weapons(id)
    
give_item(id"weapon_knife")
}

public 
plugin_end()
{
    
TrieDestroy(g_tBuyCommands)

Thanks in advance, Drekes
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-09-2010 , 13:32   Re: function not found
Reply With Quote #2

register_event("HLTV", "event_round_start", "a", "1=0", "2=0"); is not used.
__________________
Arkshine is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-09-2010 , 13:36   Re: function not found
Reply With Quote #3

ok that fixed it.
because 1 part is'nt used it crashes my complete plugin?
weird

Tnx
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 03-09-2010 , 13:40   Re: function not found
Reply With Quote #4

It shouldn't crash your plugin, it's just a debug message.
__________________
hleV is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-09-2010 , 13:47   Re: function not found
Reply With Quote #5

When it happend, nothing worked,
no stripping weapons
no game change
etc...
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 03-09-2010 , 13:49   Re: function not found
Reply With Quote #6

PHP Code:
/* Plugin made by Toast 
__________________
Zombiezzz is offline
worldspawn
Senior Member
Join Date: Aug 2009
Location: Russia, Yekaterinburg
Old 03-09-2010 , 13:52   Re: function not found
Reply With Quote #7

-the code that you gave us compiles without errors
-u have problems with plugin "jailbreak_main.amxx"
-#define AUTHOR "Toast"
worldspawn is offline
Send a message via ICQ to worldspawn Send a message via Skype™ to worldspawn
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 03-09-2010 , 14:18   Re: function not found
Reply With Quote #8

Quote:
Originally Posted by hleV View Post
It shouldn't crash your plugin, it's just a debug message.
I tought when the function is not found, everything that is registered under that function will not get registered at all. I think I had this a few times.
__________________
I am out of order!
grimvh2 is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-09-2010 , 14:23   Re: function not found
Reply With Quote #9

When there is a run time error, nothing after the error in the function is called.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-09-2010 , 14:58   Re: function not found
Reply With Quote #10

Quote:
Originally Posted by Zombiezzz View Post
PHP Code:
/* Plugin made by Toast 
PHP Code:
/* Plugin made by Toast. Ultimate All In One Jailbreak Mod/ ©2009 , Toast's Plugins. */
/* Always feel free to edit my codes, but please give me credit for them.*

#define AUTHOR "Toast"/ 
Read the full text before you crab, dude
And i give him credit by leaving the text and the author on him.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:43.


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