AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [FIX REQ] Zombie Plugin fix needed (https://forums.alliedmods.net/showthread.php?t=245732)

Dare.Devil 08-06-2014 04:16

[FIX REQ] Zombie Plugin fix needed
 
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()



YamiKaitou 08-06-2014 04:20

Re: [FIX REQ] Zombie Plugin fix needed
 
It is only defined in 1.8.3

zmd94 08-06-2014 04:55

Re: [FIX REQ] Zombie Plugin fix needed
 
Quote:

Originally Posted by YamiKaitou (Post 2179688)
It is only defined in 1.8.3

So, you need to migrate to the latest version of AMXX.

Just download it from below:

Dare.Devil 08-06-2014 07:13

Re: [FIX REQ] Zombie Plugin fix needed
 
Quote:

Originally Posted by zmd94 (Post 2179697)
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 :) :) :)

zmd94 08-06-2014 07:32

Re: [FIX REQ] Zombie Plugin fix needed
 
If you have any problems, do not hesitate to ask here (in this community). There are a lot of people that willling to help. ;)

Dare.Devil 08-06-2014 13:48

Re: [FIX REQ] Zombie Plugin fix needed
 
Quote:

Originally Posted by zmd94 (Post 2179757)
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?

Lycode 08-06-2014 15:00

Re: [FIX REQ] Zombie Plugin fix needed
 
You do not necessarily have to upgrade. You can replace DMG_GRENADE with 1 << 24.

.Dare Devil. 08-06-2014 15:36

Re: [FIX REQ] Zombie Plugin fix needed
 
Quote:

Originally Posted by Lycode (Post 2179949)
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.

YamiKaitou 08-06-2014 19:51

Re: [FIX REQ] Zombie Plugin fix needed
 
Quote:

Originally Posted by Dare.Devil (Post 2179916)
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

zmd94 08-06-2014 21:22

Re: [FIX REQ] Zombie Plugin fix needed
 
Quote:

Originally Posted by Dare.Devil (Post 2179916)
how do you mean 'to migrate' to it?

What I mean is below:
Quote:

Originally Posted by YamiKaitou (Post 2180054)
Replace all binary files with the new ones. Replace the scripting files (includes and compiler). Replace lang folder. Update configs folder manually

Quote:

Originally Posted by .Dare Devil. (Post 2179963)
Running outdated amxmodx will cause more problems than just that DMG_GRENADE define.

I agreed.


All times are GMT -4. The time now is 13:15.

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