View Single Post
Low_radiation
Member
Join Date: Nov 2008
Old 11-08-2008 , 06:58   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #2878

Quote:
Originally Posted by marcellus View Post
are u missing this file ?
I have this file , try to replace and same error . In invisible zombie i fix some errors with
#include <bh_classes>
#include <fakemeta_util>
PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c1997-2006 ITB CompuPhaseAMX Mod X Team

Error
Undefined symbol "bh_set_player_model" on line 28
Warning
Loose indentation on line 45
Warning
Loose indentation on line 47
Error
Undefined symbol "fully" on line 47
Error
Number of arguments does not match definition on line 47
Warning
Loose indentation on line 49
Warning
: Function "cheese_alive" should return a value on line 75

3 Errors
.
Could not locate output file *******\invis.amx (compile failed). 
This is my bh_baseclasses

PHP Code:
// bh_baseclasses
//
// v1.3 (06/09/2008) - bipbip
//    - Fixed some bugs
// v1.2 (06/08/2008) - bipbip
//    - added custom blood color for zombie
// v1.1 (06/07/2008) - bipbip
//    - added BH_set_hedmg_multi, BH_get_hedmg_multi, BH_set_def_multi, BH_get_def_multi
//    - added BH_set_kill_bonus, BH_get_kill_bonus (Kill bonus when killing zombie)
//    - added BH_set_hp_bonus, BH_get_hp_bonus (HP bonus when first zombie)
//    - added BH_set_kb_resist, BH_get_kb_resist (Resist to knockback until zombie hp reach BH_get_kb_hp)
//    - added BH_set_atk_multi, BH_get_atk_multi (Attack multiplier)
//    - added BH_set_flashbang, BH_can_be_flashed (Zombie can be flashed or not)
//    - added BH_set_instant, BH_get_instant (Zombie can infect instantly)

#define CLASS(%1) BH_get_user_classid(%1)

// defines
#define MAX_CLASS 8 // Maximum classes for zombie
#define MAX_SZ_LENGTH 64 // Max size of a string
#define MAX_PLAYERS 32 // max players ingame

#define D_SOUND_TRS "zm/Transformation-01.wav"

#define D_DEFAULT_FOV 90

#define MAGIC_VALUE_F 6969.69
#define MAGIC_VALUE_I 6969

#define BLOOD_COLOR_GREEN 1080 //188



stock is_bioclasses_active()
{
    if(
is_plugin_loaded("bio_baseclasses") == -1)
    {
        
log_amx("bio_baseclasses is not loaded.")
        return 
0
    
}
    return 
1
}

enum zm_integer {
    
zm_fov,
    
zm_bloodcolor,
    
zm_can_regen
    
zm_can_be_kbed,
    
zm_can_be_flashed,
    
zm_has_nvg,
    
zm_kill_bonus,
    
zm_kb_resist,
    
zm_instant,
    
zm_can_infect,
    
zm_pluginid
}
#define MAX_INT_INFOS 11

enum zm_float {
    
zm_gravity,
    
zm_health,
    
zm_speed,
    
zm_regen_delay,
    
zm_regen_startdelay,
    
zm_kb_multi,
    
zm_kb_duck_multi,
    
zm_kb_hp,
    
zm_hedmg_multi,
    
zm_def_multi,
    
zm_hp_bonus,
    
zm_atk_multi
}

#define MAX_FLOAT_INFOS 12

enum zm_string {
    
zm_name,
    
zm_desc,
    
zm_player_model,
    
zm_claws_model
}
#define MAX_SZ_INFOS 4



enum zm_userinfo_integer {
    
zm_is_menu_showing,
    
zm_classid,
    
zm_switchmenu
}
#define MAX_INT_USERINFO 3
#define FIRST_ZOMBIE true


/* register a new zombie */
native RegisterZombieclassname[], desc[]);
native BH_get_user_classid(playerid)
native BH_display_classmenu(playerid)

native BH_set_stringclassidzm_string:indexstring[], firstonly false)
native BH_get_stringclassidzm_string:indexstring[], lenfirstonly false)

native BH_set_floatclassidzm_float:indexFloat:valuefirstonly false)
native Float:BH_get_floatclassidzm_float:indexfirstonly false)

native BH_set_integerclassidzm_integer:indexvaluefirstonly false)
native BH_get_integerclassidzm_integer:indexfirstonly false)

native BH_set_iuserinfoplayeridzm_userinfo_integer:indexvalue)
native BH_get_iuserinfoplayeridzm_userinfo_integer:index)


native BH_client_print(playeridmsg[128])

native BH_register_event(classidzm_events:index, function[]);


forward event_zombify(playerid)

native bio_take_damage(playeridFloat:healthdamagebits)


// for compatibility whith version < 1.4

#define BH_set_player_model(%1,%2) BH_set_string(%1,zm_player_model,%2)
#define BH_set_wpn_model(%1,%2) BH_set_string(%1,zm_claws_model,%2)
#define BH_set_gravity(%1,%2) BH_set_float(%1,zm_gravity,%2)
#define BH_set_health(%1,%2) BH_set_float(%1,zm_health,%2)
#define BH_set_speed(%1,%2) BH_set_float(%1,zm_speed,%2)
#define BH_set_regen(%1,%2) BH_set_integer(%1,zm_can_regen,%2) 
#define BH_set_regen_delay(%1,%2) BH_set_float(%1,zm_regen_delay,%2)
#define BH_set_kb(%1,%2) BH_set_integer(%1,zm_can_be_kbed,%2)
#define BH_set_kb_power(%1,%2) BH_set_float(%1,zm_kb_multi,%2)
#define BH_set_FOV(%1,%2) BH_set_integer(%1,zm_fov,%2)
#define BH_set_kb_hp(%1,%2) BH_set_float(%1,zm_kb_hp,%2)
#define BH_set_regen_startdelay(%1,%2) BH_set_float(%1,zm_regen_startdelay,%2)
#define BH_set_kb_duck_power(%1,%2) BH_set_float(%1,zm_kb_duck_multi,%2)
#define BH_set_autonvg(%1,%2) BH_set_integer(%1,zm_has_nvg,%2)
#define BH_set_hedmg_multi(%1,%2) BH_set_float(%1,zm_hedmg_multi,%2)
#define BH_set_def_multi(%1,%2) BH_set_float(%1,zm_def_multi,%2)
#define BH_set_kill_bonus(%1,%2) BH_set_integer(%1,zm_kill_bonus,%2)
#define BH_set_hp_bonus(%1,%2) BH_set_float(%1,zm_hp_bonus,%2)
#define BH_set_kb_resist(%1,%2) BH_set_integer(%1,zm_kb_resist,%2)
#define BH_set_atk_multi(%1,%2) BH_set_float(%1,zm_atk_multi,%2)
#define BH_set_flashbang(%1,%2) BH_set_integer(%1,zm_can_be_flashed,%2)
#define BH_set_instant(%1,%2) BH_set_integer(%1,zm_instant,%2) 
This is my biohazard.inc
PHP Code:
´/* Biohazard functions
*
*  by Cheap_Suit

*  This file is provided as is (no warranties).
*/

#if defined _biohazard_included
    #endinput
#endif
#define _biohazard_included

#pragma reqlib "biohazardf"

/* Returns the mods status. */
stock is_biomod_active()
{
    if(
is_plugin_loaded("Biohazard") == -1)
    {
        
log_amx("Biohazard is not loaded.")
        return 
0
    
}
    
    if(!
cvar_exists("bh_enabled"))
    {
        
log_amx("Cvar: ^"bh_enabled^" does not exist.")
        return 
0
    
}

    new 
cvar_pointer get_cvar_pointer("bh_enabled")
    return 
get_pcvar_num(cvar_pointer)
}

/* Called when a survivor is infected by a zombie. */
forward event_infect(attackervictim)

/* Called when a survivor is infected. */
forward event_infect2(index)

/* Called when a game starts. */
forward event_gamestart()

/* Called when a team wins. */
enum BHTeam
{
    
BH_TEAM_ZOMBIE      1,
    
BH_TEAM_SURVIVOR 2
}
forward event_teamwin(BHTeam:team)

/* Returns true if the game is started */
native bool:is_game_started()

/* Makes a user zombie. */
native infect_user(index)
/* Returns 1 if user is a zombie. */
native is_user_zombie(index)

/* Returns 1 if the user is first zombie. */
native is_user_firstzombie(index)

/* Returns the id of the first zombie. */
native firstzombie()

// ADDED BY BIPBIP
native infect_user_force(index)
forward event_clearclientdata(index
And this is my biohazard.cfg
PHP Code:
/* Biohazard configs
*
*  by Cheap_Suit

*  This file is provided as is (no warranties).
*/

#if defined _biohazardcfg_included
    #endinput
#endif
#define _biohazardcfg_included

// fog settings
#define FOG_ENABLE           1
#define FOG_DENSITY        "0.0012"
#define FOG_COLOR           "128 128 128"

// default zombie setting
#define DEFAULT_PMODEL        "models/player/slum/slum.mdl"
#define DEFAULT_WMODEL        "models/v_knife_zombie.mdl"

#define DEFAULT_HEALTH         170.0 //Health value
#define DEFAULT_SPEED        280.0 //Speed value
#define DEFAULT_GRAVITY        1.0   //Gravity multiplier
#define DEFAULT_ATTACK        2.0   //Zombie damage multiplier
#define DEFAULT_DEFENCE        0.087 //Bullet damage multiplier
#define DEFAULT_HEDEFENCE   1.0   //HE damage multiplier
#define DEFAULT_HITSPEED    0.89  //Pain speed multiplier
#define DEFAULT_HITDELAY    0.28  //Pain speed delay value
#define DEFAULT_REGENDLY    0.18  //Regeneration delay value
#define DEFAULT_HITREGENDLY 2.0   //Pain regeneration delay value
#define DEFAULT_KNOCKBACK   1.0   //Knockback multiplier

new g_zombie_weapname[] = "melee"
new g_infection_name[]  = "infection"

// primary weapons (menu|game)
new g_primaryweapons[][][] = 

    { 
"M4A1",     "weapon_m4a1"    },
    { 
"AK47",     "weapon_ak47"    },
    { 
"AUG",      "weapon_aug"     },
    { 
"SG552",    "weapon_sg552"   },
    { 
"Galil",    "weapon_galil"   },
    { 
"Famas",    "weapon_famas"   },
    { 
"MP5 Navy""weapon_mp5navy" },
    { 
"XM1014",   "weapon_xm1014"  },
    { 
"M3",       "weapon_m3"      },
    { 
"P90",      "weapon_p90"     },
    { 
"M249",     "weapon_m249"    },
    { 
"SG550",    "weapon_sg550"   },
    { 
"G3SG1",    "weapon_g3sg1"   }            
}

// secondary weapons (menu|game)
new g_secondaryweapons[][][] = 

    { 
"Deagle",   "weapon_deagle"  },
    { 
"USP",      "weapon_usp"     },
    { 
"Elite",    "weapon_elite"   
}

// grenade loadout (game)
new g_grenades[][] = 

    
"weapon_hegrenade",
    
"weapon_flashbang",
    
"weapon_smokegrenade"
}

new 
Float:g_knockbackpower[] =
{
    
3.0,  // KBPOWER_357SIG
    
4.0,  // KBPOWER_762NATO
    
9.5,  // KBPOWER_BUCKSHOT
    
3.0,  // KBPOWER_45ACP
    
4.5,  // KBPOWER_556NATO
    
3.0,  // KBPOWER_9MM
    
3.5,  // KBPOWER_57MM
    
12.0// KBPOWER_338MAGNUM
    
4.0,  // KBPOWER_556NATOBOX
    
3.8   // KBPOWER_50AE
}

new 
g_survivor_win_sounds[][] =
{
    
"biohazard/survivor_win1.wav",
    
"biohazard/survivor_win2.wav",
    
"biohazard/survivor_win3.wav"
}

new 
g_zombie_win_sounds[][] = 

    
"biohazard/zombie_win1.wav"
    
"biohazard/zombie_win2.wav",
    
"biohazard/zombie_win3.wav"     
}

new 
g_scream_sounds[][] = 

    
"biohazard/scream1.wav"
    
"biohazard/scream2.wav"
    
"biohazard/scream3.wav"
}

new 
g_zombie_miss_sounds[][] = 

    
"zombie/claw_miss1.wav"
    
"zombie/claw_miss2.wav"                     
}

new 
g_zombie_hit_sounds[][] = 

    
"zombie/claw_strike1.wav",
    
"zombie/claw_strike2.wav",
    
"zombie/claw_strike3.wav"
}

new 
g_zombie_die_sounds[][] = 
{
    
"biohazard/death1.wav",
    
"biohazard/death2.wav",
    
"biohazard/death3.wav" 

What im missing???
Modules :
PHP Code:

mysql
;sqlite

fun
engine
fakemeta
geoip
sockets
regex
nvault
cstrike
csx
hamsandwich 
In biohazard.sma :
PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c1997-2006 ITB CompuPhaseAMX Mod X Team

Error
Undefined symbol "g_zombie_model" on line 138
Error
Undefined symbol "g_zombie_claws" on line 139
Error
Undefined symbol "g_zombie_model" on line 140
Error
Number of arguments does not match definition on line 140
Error
Undefined symbol "g_zombie_claws" on line 141
Error
Too many error messages on one line on line 141

Compilation aborted
.
6 Errors.
Could not locate output file ************biohazard.amx (compile failed). 


(BTW "***" place where is file )
__________________
Sorry for my English..
Icq

Last edited by Low_radiation; 11-08-2008 at 07:26.
Low_radiation is offline
Send a message via ICQ to Low_radiation