Raised This Month: $ Target: $400
 0% 

[ZP] Problema


  
 
 
Thread Tools Display Modes
Author Message
lautitow
Senior Member
Join Date: Jan 2010
Location: Rosario - Santa Fe - Arg
Old 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.01.10.00.0, -1)
        
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync2"^n%L: %d ^n%L %s ^n%L %d ^nChaleco: %d ^nNivel: %d ^nRestantes: %d"id"ZOMBIE_ATTRIB1"pev(ID_SHOWHUDpev_health), ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[ID_SHOWHUD], pev(idpev_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_namezclass1_infozclass1_modelzclass1_clawmodelzclass1_healthzclass1_speedzclass1_gravityzclass1_knockbackzclass1_level)    
    
zp_register_zombie_class(zclass2_namezclass2_infozclass2_modelzclass2_clawmodelzclass2_healthzclass2_speedzclass2_gravityzclass2_knockbackzclass2_level)
    
zp_register_zombie_class(zclass3_namezclass3_infozclass3_modelzclass3_clawmodelzclass3_healthzclass3_speedzclass3_gravityzclass3_knockbackzclass3_level)
    
zp_register_zombie_class(zclass4_namezclass4_infozclass4_modelzclass4_clawmodelzclass4_healthzclass4_speedzclass4_gravityzclass4_knockbackzclass4_level)
    
g_zclass_leech zp_register_zombie_class(zclass5_namezclass5_infozclass5_modelzclass5_clawmodelzclass5_healthzclass5_speedzclass5_gravityzclass5_knockbackzclass5_level)
    
g_zclass6_infecter zp_register_zombie_class(zclass6_namezclass6_infozclass6_modelzclass6_clawmodelg_zclass6_healthzclass6_speedzclass6_gravityzclass6_knockbackzclass6_level
}

// User Infected forward
public zp_user_infected_post(idinfector)
{
    
// If attacker is a leech zombie, gets extra hp
    
if (zp_get_user_zombie_class(infector) == g_zclass_leech)
        
set_pev(infectorpev_healthfloat(pev(infectorpev_health) + zclass5_infecthp))
        
    if (
zp_get_user_zombie_class(id) == g_zclass6_infecter && !zp_get_user_nemesis(id))
    {
        
client_cmdid"bind E ^"+invisible^"" )
        
client_print(idprint_chat"Presiona E para hacerte invisible por 30 segundos...")
    }
}

public 
invisibleid 
{
    
set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderNormal,300)
    
set_task(get_pcvar_float(invistime), "endinvis")
}

public 
endinvisid )
{
    
set_user_rendering(idkRenderFxNone0,0,0kRenderNormal255)
}

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 
Playerpev_healthhealth )
 
    if ( 
health g_zclass6_health && g_regendelay Player ] < gametime )
    {
        
set_pev Playerpev_healthhealth 1.0 )
        
g_regendelay Player ] = gametime 1.0
    
}
    return 
FMRES_IGNORED

lautitow is offline
Asdito´^
Veteran Member
Join Date: Feb 2010
Location: Santa Fe, Argentina
Old 07-12-2011 , 15:50   Re: [ZP] Problema
#2

Quote:
Run time error 4: index out of bounds
NIVELES[g_level[ID_SHOWHUD]]

quizá tenes un nivel mayor al maximo de NIVELES.
__________________
################################
Asdito´^ is offline
Send a message via MSN to Asdito´^
stickcs
Senior Member
Join Date: Jan 2011
Old 07-12-2011 , 16:06   Re: [ZP] Problema
#3

mostrame como registraste NIVELES si hiciste new const NIVELES [][], sacale 1.
__________________
Miragehost [Gameservers]
stickcs is offline
AlgoChikitito
BANNED
Join Date: Feb 2011
Location: España
Old 07-12-2011 , 19:20   Re: [ZP] Problema
#4

Quote:
Originally Posted by lautitow View Post
client_cmd( id, "bind E ^"+invisible^"" )[/php]
.....
AlgoChikitito is offline
matrix123
Veteran Member
Join Date: Feb 2011
Old 07-12-2011 , 21:18   Re: [ZP] Problema
#5

Quote:
client_cmd( id, "bind E ^"+invisible^"" )
yo te diria que crees un menu preguntando si kiere bindear la tecla xd xq sino se considera slowhack aca y esta prohibido :S
matrix123 is offline
_Venganza_
Senior Member
Join Date: Apr 2011
Location: Valparaiso, Chile
Old 07-12-2011 , 21:43   Re: [ZP] Problema
#6

No es mas facil hookear la invisibilidad con +use ?

PHP Code:
register_clcmd"+use""die_la_bitch"
_Venganza_ is offline
Old 07-12-2011, 21:44
_Venganza_
This message has been deleted by _Venganza_. Reason: Doble post.
rubee
Senior Member
Join Date: Oct 2009
Location: party rocking
Old 07-13-2011 , 00:13   Re: [ZP] Problema
#7

Quote:
Originally Posted by _Venganza_ View Post
No es mas facil hookear la invisibilidad con +use ?

PHP Code:
register_clcmd"+use""die_la_bitch"
no puedes hookear comandos + - de esa forma
__________________


rubee is offline
lautitow
Senior Member
Join Date: Jan 2010
Location: Rosario - Santa Fe - Arg
Old 07-13-2011 , 11:52   Re: [ZP] Problema
#8

no me digan del chombi a mi, yo no lo ise, esta posteado en alguna parte ese chombi...

Los niveles estan definidos asi:

PHP Code:
new const NIVELES[28] = { 05102050120200240260300350400470500600610620630640650660670680690700710718721 
ai 28, y no tiene dos "[]"
lautitow is offline
 



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:23.


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