Witam. TAK jak w temacie chce żeby ktoś mi przrobił tak klasę żeby nie było Errorów.
Tutaj Podaje SMA.
/* Plugin generated by AMXX-Studio */
#include <amxmodx>#include <codmod>#include <hamsandwich>#define DMG_BULLET (1<<1)new bool:ma_klase[33];new const nazwa[] = "Poczatkujacy Snajper";new const opis[] = "110 procent obrazen z AWP(+inteligencja), 1/3 szansy na natychmiastowe zabicie z noza(PPM)";new const bronie = 1<<CSW_DEAGLE | 1<<CSW_AWP;new const zdrowie = 5;new const kondycja = 15;new const inteligencja = 15;new const wytrzymalosc = 25;public plugin_init(){register_plugin(nazwa, "1.0", "QTM_Peyote");cod_register_class(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 && random_num(1,3) == 1)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*0.1, 0.5, idinflictor, damagebits);}return HAM_IGNORED;}
A gdy chcę skompilować tą klasę to mam 1 Error..
Który wygląda tak
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2006 ITB CompuPhase, AMX Mod X Teamcodclass_elitarnysnajper.sma(23) : error 017: undefined symbol "cod_register_advance"codclass_elitarnysnajper.sma(54) : warning 203: symbol is never used: "bronie"codclass_elitarnysnajper.sma(54) : warning 203: symbol is never used: "inteligencja"codclass_elitarnysnajper.sma(54) : warning 203: symbol is never used: "kondycja"codclass_elitarnysnajper.sma(54) : warning 203: symbol is never used: "wytrzymalosc"codclass_elitarnysnajper.sma(54) : warning 203: symbol is never used: "zdrowie"1 Error.Could not locate output file codclass_elitarnysnajper.amxx (compile failed).
Za pomoc Będą PLUSIKI