Raised This Month: $ Target: $400
 0% 

function not found


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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