Raised This Month: $51 Target: $400
 12% 

[SOLVED] tag mismatch help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
felipemilralze
Senior Member
Join Date: Jul 2011
Location: Brazil
Old 05-04-2014 , 16:54   [SOLVED] tag mismatch help
Reply With Quote #1

Help me (tag mismatch line 33)

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>
#include <zp50_core>
#include <zp50_class_zombie>
#include <zp50_class_nemesis>
#include <zp50_class_assassin>

new jumpznum[33] = 0
new bool:dozjump[33] = false

new cvar_jumps
new g_zclass_tight

// Tight Zombie Atributes
new const zclass_name[] = { "Tight Zombie" // name
new const zclass_info[] = { "HP-- Speed++ Jump++ Knockback++" // description
new const zclass_model[] = { "zombie_source" // model
new const zclass_clawmodel[] = { "v_knife_zombie.mdl" // claw model
const zclass_health 1000 // health
const zclass_speed 220 // speed
const Float:zclass_gravity 0.8 // gravity
const Float:zclass_knockback 1.5 // knockback

public plugin_precache()
{
    
register_plugin("[ZP] Class Tight""1.0c""MultiJump by twistedeuphoria, Plagued by Dabbi, Classed by B!gBud")
    
cvar_jumps register_cvar("zp_tight_jump""1")

        new 
index
  
        g_zclass_tight 
zp_class_zombie_register(zclass_namezclass_infozclass_healthzclass_speedzclass_gravity)
        
zp_class_zombie_register_kb(g_zclass_tightzclass_knockback)
        for (
index 0index sizeof zclass_modelindex++)
                
zp_class_zombie_register_model(g_zclass_tightzclass_model[index])
    for (
index 0index sizeof zclass_clawmodelindex++)
        
zp_class_zombie_register_claw(g_zclass_tightzclass_clawmodel[index])
}

public 
client_putinserver(id)
{
    
jumpznum[id] = 0
    dozjump
[id] = false
}

public 
client_disconnect(id)
{
    
jumpznum[id] = 0
    dozjump
[id] = false
}

public 
client_PreThink(id)
{
    if(!
is_user_alive(id) || !zp_core_is_zombie(id) || zp_class_nemesis_get(id) || zp_class_assassin_get(id)) return PLUGIN_CONTINUE
    
if(zp_class_zombie_get_current(id) != g_zclass_tight) return PLUGIN_CONTINUE
    
    
new nzbut get_user_button(id)
    new 
ozbut get_user_oldbutton(id)
    if((
nzbut IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(ozbut IN_JUMP))
    {
        if (
jumpznum[id] < get_pcvar_num(cvar_jumps))
        {
            
dozjump[id] = true
            jumpznum
[id]++
            return 
PLUGIN_CONTINUE
        
}
    }
    if((
nzbut IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))
    {
        
jumpznum[id] = 0
        
return PLUGIN_CONTINUE
    
}    
    return 
PLUGIN_CONTINUE
}

public 
client_PostThink(id)
{
    if(!
is_user_alive(id) || !zp_core_is_zombie(id)) return PLUGIN_CONTINUE
    
if(zp_class_zombie_get_current(id) != g_zclass_tight) return PLUGIN_CONTINUE
    
    
if(dozjump[id] == true)
    {
        new 
Float:vezlocityz[3]    
        
entity_get_vector(id,EV_VEC_velocity,vezlocityz)
        
vezlocityz[2] = random_float(265.0,285.0)
        
entity_set_vector(id,EV_VEC_velocity,vezlocityz)
        
dozjump[id] = false
        
return PLUGIN_CONTINUE
    
}    
    return 
PLUGIN_CONTINUE


Last edited by felipemilralze; 05-04-2014 at 17:16.
felipemilralze is offline
Send a message via MSN to felipemilralze Send a message via Skype™ to felipemilralze
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-04-2014 , 17:02   Re: tag mismatch help
Reply With Quote #2

When you get these types of warnings, you need to go find where the function is defined. Look to see what the tags of the arguments are. Then, check the tags of the variables that you are using for the arguments in your code. If they don't match, fix it.
__________________

Last edited by fysiks; 05-04-2014 at 17:20.
fysiks is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 05-04-2014 , 17:08   Re: tag mismatch help
Reply With Quote #3

PHP Code:
const zclass_speed 220 // speed 
--->

PHP Code:
const Float:zclass_speed 1.0 // speed, add your value 
The speed of 5.0 work with float..

Last edited by wicho; 05-04-2014 at 17:10.
wicho is offline
felipemilralze
Senior Member
Join Date: Jul 2011
Location: Brazil
Old 05-04-2014 , 17:15   Re: tag mismatch help
Reply With Quote #4

Quote:
Originally Posted by wicho View Post
PHP Code:
const zclass_speed 220 // speed 
--->

PHP Code:
const Float:zclass_speed 1.0 // speed, add your value 
The speed of 5.0 work with float..
thx wicho
felipemilralze is offline
Send a message via MSN to felipemilralze Send a message via Skype™ to felipemilralze
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 15:43.


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