Raised This Month: $ Target: $400
 0% 

[FIX REQ] Zombie Plugin fix needed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dare.Devil
Member
Join Date: May 2014
Old 08-06-2014 , 04:16   [FIX REQ] Zombie Plugin fix needed
Reply With Quote #1

hi all,
can anyone help me solve this error? ..when I try to complie this plug (along with the rest of it) I get error from (damagebits == DMG_GRENADE)
I'm using amxx Studio and error says: Error: Undefined symbol "DMG_GRENADE" on line 2031

can anyone help me with this?! .. thanks in advance
PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damagedamagebits)
{
    if(
g_gamestart 2)
        return 
HAM_SUPERCEDE
    
if(!is_user_connected(victim) || !is_user_connected(attacker))
        return 
HAM_IGNORED
    
if(!g_zombie[victim] && !g_zombie[attacker])
        return 
HAM_SUPERCEDE
    
if(g_zombie[victim] && g_zombie[attacker])
        return 
HAM_SUPERCEDE        
    
if(g_zombie[attacker] && get_user_weapon(attacker) == CSW_KNIFE)
    {
        if(
damagebits == DMG_GRENADE)
            return 
HAM_SUPERCEDE
        
        message_begin
(MSG_BROADCASTg_MsgDeathMsg)
        
write_byte(attacker// killer
        
write_byte(victim// victim
        
write_byte(0// headshot flag
        
write_string("knife"// killer's weapon
        
message_end()
        
        
FixDeadAttrib(victim)
        
        
update_frags(attacker1)
        
update_deaths(victim1)
        
        
set_user_zombie(victimZOMBIE_TYPE_HOST0)
        
ExecuteForward(g_forwards[FORWARD_INFECTED], g_fwDummyResultvictimattacker)
    } else if(
g_zombie[victim] && !g_zombie[attacker]) {
        
set_pdata_float(victim1081.050)
        
        static 
Float:MyOrigin[3]
        
pev(attackerpev_originMyOrigin)
        
        
hook_ent2(victimMyOrigincfg_zombie_kbpower2)
    }
    
    return 
HAM_HANDLED
}

public 
update_frags(idfrag)
{
    if(!
is_user_connected(id))
        return
    
    
set_pev(idpev_fragsfloat(pev(idpev_frags) + frag))
    
    
message_begin(MSG_BROADCASTget_user_msgid("ScoreInfo"))
    
write_byte(id// id
    
write_short(pev(idpev_frags)) // frags
    
write_short(cs_get_user_deaths(id)) // deaths
    
write_short(0// class?
    
write_short(get_pdata_int(id1145)) // team
    
message_end()

Dare.Devil is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-06-2014 , 04:20   Re: [FIX REQ] Zombie Plugin fix needed
Reply With Quote #2

It is only defined in 1.8.3
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 08-06-2014 , 04:55   Re: [FIX REQ] Zombie Plugin fix needed
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
It is only defined in 1.8.3
So, you need to migrate to the latest version of AMXX.

Just download it from below:
zmd94 is offline
Dare.Devil
Member
Join Date: May 2014
Old 08-06-2014 , 07:13   Re: [FIX REQ] Zombie Plugin fix needed
Reply With Quote #4

Quote:
Originally Posted by zmd94 View Post
So, you need to migrate to the latest version of AMXX.

Just download it from below:
all this time I only needed to upgrade to the latest AmxModX.. how stupid of me to not notice there was a new AmxMod out there

I knew it couldn't be the problem of the plugin..

thanks a lot guys..you are awesome
Dare.Devil is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 08-06-2014 , 07:32   Re: [FIX REQ] Zombie Plugin fix needed
Reply With Quote #5

If you have any problems, do not hesitate to ask here (in this community). There are a lot of people that willling to help. ;)
zmd94 is offline
Dare.Devil
Member
Join Date: May 2014
Old 08-06-2014 , 13:48   Re: [FIX REQ] Zombie Plugin fix needed
Reply With Quote #6

Quote:
Originally Posted by zmd94 View Post
If you have any problems, do not hesitate to ask here (in this community). There are a lot of people that willling to help. ;)
ok I downloaded the zip of amxmodx 1.8.3 .. how do you mean 'to migrate' to it?

just copy and paste over existing files under /addons folder? and then of course re-add the plugins cvars and the rest of files?
Dare.Devil is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-06-2014 , 19:51   Re: [FIX REQ] Zombie Plugin fix needed
Reply With Quote #7

Quote:
Originally Posted by Dare.Devil View Post
ok I downloaded the zip of amxmodx 1.8.3 .. how do you mean 'to migrate' to it?

just copy and paste over existing files under /addons folder? and then of course re-add the plugins cvars and the rest of files?
Replace all binary files with the new ones. Replace the scripting files (includes and compiler). Replace lang folder. Update configs folder manually
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Lycode
Junior Member
Join Date: Aug 2014
Old 08-06-2014 , 15:00   Re: [FIX REQ] Zombie Plugin fix needed
Reply With Quote #8

You do not necessarily have to upgrade. You can replace DMG_GRENADE with 1 << 24.
__________________
-This too shall pass
Lycode is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 08-06-2014 , 15:36   Re: [FIX REQ] Zombie Plugin fix needed
Reply With Quote #9

Quote:
Originally Posted by Lycode View Post
You do not necessarily have to upgrade. You can replace DMG_GRENADE with 1 << 24.
running outdated amxmodx will cause more problems than just that DMG_GRENADE define.
.Dare Devil. is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 08-07-2014 , 14:23   Re: [FIX REQ] Zombie Plugin fix needed
Reply With Quote #10

Quote:
Originally Posted by .Dare Devil. View Post
running outdated amxmodx will cause more problems than just that DMG_GRENADE define.
1.8.2 isn't outdated
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
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 13:15.


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