|
Veteran Member
Join Date: Jul 2009
Location: Vault 11
|

03-09-2010
, 13:16
function not found
|
#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: [AMXX] Displaying debug trace (plugin "jailbreak_main.amxx") 19:06:15 L 03/09/2010 - 19:02:32: [AMXX] Run time error 19: function not found 19:06:15 L 03/09/2010 - 19:02:32: [AMXX] [0] jailbreak_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(PLUGIN, VERSION, AUTHOR); 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 i = 0; i < sizeof(szBuyCommands); i++) { TrieSetCell(g_tBuyCommands, szBuyCommands[i], i); } }
public plugin_cfg() { g_iMaxPlayers = get_maxplayers() } public PlayerSpawn(id) { for( new i = 1; i <= g_iMaxPlayers ; i++ ) { if(!is_user_connected(id) ||(is_user_bot(id)) ||(!is_user_alive(id))) { return PLUGIN_HANDLED }
{ set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderNormal, 20) set_pdata_int(id, OFFSET_PRIMARYWEAPON, 0) set_task(1.0, "strip_weapons", id) } } return PLUGIN_HANDLED }
public GameDesc() { static gamename[32]
get_pcvar_string(g_iGameNamer, gamename, 31) forward_return(FMV_STRING, gamename) return FMRES_SUPERCEDE }
public Player_Jump(id) { if( is_user_alive(id) && entity_get_float(id, EV_FL_fuser2) > 0.0 ) { entity_set_float(id, EV_FL_fuser2, 0.0) } }
public client_command(client) { if(!is_user_alive(client)) { return PLUGIN_CONTINUE }
static szArg[15]
if(read_argv(0, szArg, 14) > 13) { return PLUGIN_CONTINUE }
strtolower(szArg); if(TrieKeyExists(g_tBuyCommands, szArg) && (1 << (_:cs_get_user_team(client)) & ((1 <<(_:CS_TEAM_T)) | (1 <<(_: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
You're retarded.
|
|
|