Witam niedawno na swoim cod'zie dodałęm awanse klas. I po wgraniu klasy serwer nie che się włączyć mam taki błąd w konsoli serwera:
L 11/03/2012 - 20:44:24: [AMXX] Plugin "ErosI1.amxx" failed to load: Plugin uses an unknown function (name "cod_register_advance") - check your modules.ini
To sma klasy
Spoiler
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <codmod>
#include <hamsandwich>
#define DMG_BULLET (1<<1)
new bool:ma_klase[33];
new const nazwa[] = "ErosI";
new const opis[] = "200 procent obrazen z AWP(+inteligencja), 1/1 szansy na natychmiastowe zabicie z noza(PPM)";
new const bronie = 1<<CSW_DEAGLE | 1<<CSW_AWP;
new const zdrowie = 80;
new const kondycja = 75;
new const inteligencja = 20;
new const wytrzymalosc = 50;
public plugin_init()
{
register_plugin(nazwa, "1.0", "QTM_Peyote");
cod_register_advance(cod_get_classid("Eros"), 30, nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);
RegisterHam(Ham_TakeDamage, "player", "TakeDamage");
}
public cod_class_enabled(id)
ma_klase[id] = true;
public cod_class_disabled(id)
ma_klase[id] = false;
public TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits)
{
if(!is_user_connected(idattacker))
return HAM_IGNORED;
if(!ma_klase[idattacker])
return HAM_IGNORED;
if(damagebits & DMG_BULLET)
{
new weapon = get_user_weapon(idattacker);
if(weapon == CSW_KNIFE && damage > 20.0)
cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
if(weapon == CSW_AWP)
cod_inflict_damage(idattacker, this, damage*1.0, 1.0, idinflictor, damagebits);
}
return HAM_IGNORED;
}
A tu modules.ini
Spoiler
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Put third party modules below here. ;;
;; You can just list their names, without the _amxx ;;
;; or file extension. ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; These modules will be auto-detected and loaded ;;
;; as needed. You do not need to enable them here ;;
;; unless you have problems. ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
fun
engine
fakemeta
geoip
sockets
regex
nvault
cstrike
csx
hamsandwich