Senior Member
Join Date: Jan 2010
Location: Rosario - Santa Fe - Arg
|
07-12-2011
, 15:29
[ZP] Problema
|
#1
|
No toque absolutamente nada , no se que pasa... El modo anda bien, pero no me muestra el hud, y en consola me pide que ponga "debug" en el plugin para ver el error....
Estos son los logs:
HTML Code:
L 07/12/2011 - 16:22:47: Start of error session.
L 07/12/2011 - 16:22:47: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20110712.log")
L 07/12/2011 - 16:22:47: Function "die_la_bitch" was not found
L 07/12/2011 - 16:22:47: [AMXX] Run time error 19 (plugin "zp_zclasses40.amxx") - debug not enabled!
L 07/12/2011 - 16:22:47: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 07/12/2011 - 16:22:49: [AMXX] Displaying debug trace (plugin "zombie_plague40.amxx")
L 07/12/2011 - 16:22:49: [AMXX] Run time error 4: index out of bounds
L 07/12/2011 - 16:22:49: [AMXX] [0] zombie_plague40.sma::ShowHUD (line 6096)
L 07/12/2011 - 16:22:50: [AMXX] Displaying debug trace (plugin "zombie_plague40.amxx")
L 07/12/2011 - 16:22:50: [AMXX] Run time error 4: index out of bounds
L 07/12/2011 - 16:22:50: [AMXX] [0] zombie_plague40.sma::ShowHUD (line 6096)
L 07/12/2011 - 16:22:51: [AMXX] Displaying debug trace (plugin "zombie_plague40.amxx")
L 07/12/2011 - 16:22:51: [AMXX] Run time error 4: index out of bounds
L 07/12/2011 - 16:22:51: [AMXX] [0] zombie_plague40.sma::ShowHUD (line 6096)
L 07/12/2011 - 16:22:52: [AMXX] Displaying debug trace (plugin "zombie_plague40.amxx")
L 07/12/2011 - 16:22:52: [AMXX] Run time error 4: index out of bounds
L 07/12/2011 - 16:22:52: [AMXX] [0] zombie_plague40.sma::ShowHUD (line 6096)
L 07/12/2011 - 16:22:53: [AMXX] Displaying debug trace (plugin "zombie_plague40.amxx")
L 07/12/2011 - 16:22:53: [AMXX] Run time error 4: index out of bounds
L 07/12/2011 - 16:22:53: [AMXX] [0] zombie_plague40.sma::ShowHUD (line 6096)
L 07/12/2011 - 16:22:54: [AMXX] Displaying debug trace (plugin "zombie_plague40.amxx")
L 07/12/2011 - 16:22:54: [AMXX] Run time error 4: index out of bounds
L 07/12/2011 - 16:22:54: [AMXX] [0] zombie_plague40.sma::ShowHUD (line 6096)
L 07/12/2011 - 16:22:55: [AMXX] Displaying debug trace (plugin "zombie_plague40.amxx")
L 07/12/2011 - 16:22:55: [AMXX] Run time error 4: index out of bounds
L 07/12/2011 - 16:22:55: [AMXX] [0] zombie_plague40.sma::ShowHUD (line 6096)
L 07/12/2011 - 16:22:56: [AMXX] Displaying debug trace (plugin "zombie_plague40.amxx")
L 07/12/2011 - 16:22:56: [AMXX] Run time error 4: index out of bounds
L 07/12/2011 - 16:22:56: [AMXX] [0] zombie_plague40.sma::ShowHUD (line 6096)
y esta la linea 6096 ( la de ShowSyncHudMsg )
PHP Code:
{ // Show health, class and ammo packs set_hudmessage(red[id], green[id], blue[id], HUD_STATS_X[id], HUD_STATS_Y[id], HUD_STATS_T[id], 6.0, 1.1, 0.0, 0.0, -1) ShowSyncHudMsg(ID_SHOWHUD, g_MsgSync2, "^n%L: %d ^n%L %s ^n%L %d ^nChaleco: %d ^nNivel: %d ^nRestantes: %d", id, "ZOMBIE_ATTRIB1", pev(ID_SHOWHUD, pev_health), ID_SHOWHUD, "CLASS_CLASS", class, ID_SHOWHUD, "AMMO_PACKS1", g_ammopacks[ID_SHOWHUD], pev(id, pev_armorvalue), g_level[ID_SHOWHUD], (NIVELES[g_level[ID_SHOWHUD]] - g_ammopacks[ID_SHOWHUD])) }
tambien las clases de zombie:
PHP Code:
/*================================================================================ ----------------------------------- -*- [ZP] Default Zombie Classes -*- ----------------------------------- ~~~~~~~~~~~~~~~ - Description - ~~~~~~~~~~~~~~~ This plugin adds the default zombie classes to Zombie Plague. Feel free to modify their attributes to your liking. Note: If zombie classes are disabled, the first registered class will be used for all players (by default, Classic Zombie). ================================================================================*/
#include <amxmodx> #include <fakemeta> #include <fun> #include <zombieplague>
/*================================================================================ [Plugin Customization] =================================================================================*/
// Classic Zombie Attributes new const zclass1_name[] = { "Zombie Peter" } new const zclass1_info[] = { "\yZombie balanceado" } new const zclass1_model[] = { "zombie_source" } new const zclass1_clawmodel[] = { "v_knife_zombie.mdl" } const zclass1_health = 5800 const zclass1_speed = 190 const Float:zclass1_gravity = 1.0 const Float:zclass1_knockback = 1.0 const zclass1_level = 0
// Raptor Zombie Attributes new const zclass2_name[] = { "Zombie Flosh" } new const zclass2_info[] = { "\y++Velocidad ++Daño --Vida" } new const zclass2_model[] = { "zombie_source" } new const zclass2_clawmodel[] = { "v_knife_zombie.mdl" } const zclass2_health = 4900 const zclass2_speed = 295 const Float:zclass2_gravity = 1.0 const Float:zclass2_knockback = 1.5 const zclass2_level = 3
// Poison Zombie Attributes new const zclass3_name[] = { "Zombie Toronjon" } new const zclass3_info[] = { "\y++Gravedad +Velocidad -Vida" } new const zclass3_model[] = { "zombie_source" } new const zclass3_clawmodel[] = { "v_knife_zombie.mdl" } const zclass3_health = 5200 const zclass3_speed = 210 const Float:zclass3_gravity = 0.65 const Float:zclass3_knockback = 1.25 const zclass3_level = 8
// Big Zombie Attributes new const zclass4_name[] = { "Zombie Saraza" } new const zclass4_info[] = { "\y++Vida +Velocidad --Daño" } new const zclass4_model[] = { "zombie_source" } new const zclass4_clawmodel[] = { "v_knife_zombie.mdl" } const zclass4_health = 6700 const zclass4_speed = 215 const Float:zclass4_gravity = 1.0 const Float:zclass4_knockback = 0.5 const zclass4_level = 13
// Leech Zombie Attributes new const zclass5_name[] = { "Zombie Chupador" } new const zclass5_info[] = { "\y++ 1500 de vida por infeccion" } new const zclass5_model[] = { "zombie_source" } new const zclass5_clawmodel[] = { "v_knife_zombie.mdl" } const zclass5_health = 4900 const zclass5_speed = 190 const Float:zclass5_gravity = 1.0 const Float:zclass5_knockback = 1.25 const zclass5_infecthp = 1500 // extra hp for infections const zclass5_level = 18
// Zombie Attributes new const zclass6_name[] = { "Zombie Alien" } // name new const zclass6_info[] = { "Pulsando [E] te haras invisible por 30 Seg." } // description new const zclass6_model[] = { "Chombi Alien" } // model new const zclass6_clawmodel[] = { "v_chombi_alien.mdl" } // claw model const g_zclass6_health = 5500 // health const zclass6_speed = 350 // speed const Float:zclass6_gravity = 0.7 // gravity const Float:zclass6_knockback = 0.5 // knockback const zclass6_level = 23 new g_zclass6_infecter,invistime
new Float:g_regendelay [ 33 ]
/*============================================================================*/
// Class IDs new g_zclass_leech
public plugin_init( ){ register_forward ( FM_PlayerPreThink, "fw_PlayerPreThink" )
invistime = register_cvar("zp_invis_time", "30.0") register_clcmd( "+invisible", "die_la_bitch", ADMIN_ALL, "bind [key] +invisible" ) }
// Zombie Classes MUST be registered on plugin_precache public plugin_precache() { register_plugin("[ZP] Default Zombie Classes", "4.2", "MeRcyLeZZ") // Register all classes zp_register_zombie_class(zclass1_name, zclass1_info, zclass1_model, zclass1_clawmodel, zclass1_health, zclass1_speed, zclass1_gravity, zclass1_knockback, zclass1_level) zp_register_zombie_class(zclass2_name, zclass2_info, zclass2_model, zclass2_clawmodel, zclass2_health, zclass2_speed, zclass2_gravity, zclass2_knockback, zclass2_level) zp_register_zombie_class(zclass3_name, zclass3_info, zclass3_model, zclass3_clawmodel, zclass3_health, zclass3_speed, zclass3_gravity, zclass3_knockback, zclass3_level) zp_register_zombie_class(zclass4_name, zclass4_info, zclass4_model, zclass4_clawmodel, zclass4_health, zclass4_speed, zclass4_gravity, zclass4_knockback, zclass4_level) g_zclass_leech = zp_register_zombie_class(zclass5_name, zclass5_info, zclass5_model, zclass5_clawmodel, zclass5_health, zclass5_speed, zclass5_gravity, zclass5_knockback, zclass5_level) g_zclass6_infecter = zp_register_zombie_class(zclass6_name, zclass6_info, zclass6_model, zclass6_clawmodel, g_zclass6_health, zclass6_speed, zclass6_gravity, zclass6_knockback, zclass6_level) }
// User Infected forward public zp_user_infected_post(id, infector) { // If attacker is a leech zombie, gets extra hp if (zp_get_user_zombie_class(infector) == g_zclass_leech) set_pev(infector, pev_health, float(pev(infector, pev_health) + zclass5_infecthp)) if (zp_get_user_zombie_class(id) == g_zclass6_infecter && !zp_get_user_nemesis(id)) { client_cmd( id, "bind E ^"+invisible^"" ) client_print(id, print_chat, "Presiona E para hacerte invisible por 30 segundos...") } }
public invisible( id ) { set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderNormal,300) set_task(get_pcvar_float(invistime), "endinvis") }
public endinvis( id ) { set_user_rendering(id, kRenderFxNone, 0,0,0, kRenderNormal, 255) }
public fw_PlayerPreThink ( Player ) { if ( !is_user_alive ( Player ) || !zp_get_user_zombie ( Player ) ) return FMRES_IGNORED
static Float:gametime gametime = get_gametime ( )
static Float:health pev ( Player, pev_health, health ) if ( health < g_zclass6_health && g_regendelay [ Player ] < gametime ) { set_pev ( Player, pev_health, health + 1.0 ) g_regendelay [ Player ] = gametime + 1.0 } return FMRES_IGNORED }
|
|