Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2006 ITB CompuPhase, AMX Mod X Team
codclass_komandos.sma(32) : error 003: declaration of a local variable must appear in a compound block
codclass_komandos.sma(35) : error 055: start of function body without function header
codclass_komandos.sma(36) : error 021: symbol already defined: "ColorChat"
codclass_komandos.sma(37) : error 010: invalid function or declaration
codclass_komandos.sma(40) : error 010: invalid function or declaration
codclass_komandos.sma(43) : error 010: invalid function or declaration
codclass_komandos.sma(63) : warning 203: symbol is never used: "ColorChat"
codclass_komandos.sma(63) : warning 203: symbol is never used: "ColorSelection"
codclass_komandos.sma(63) : warning 203: symbol is never used: "FindPlayer"
codclass_komandos.sma(63) : warning 203: symbol is never used: "ShowColorMessage"
codclass_komandos.sma(63) : warning 203: symbol is never used: "Team_Info"
6 Errors.
Could not locate output file codclass_komandos.amxx (compile failed).
Oto sma:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <codmod>
#include <hamsandwich>
#include <engine>
#include <colorchat>
#define DMG_BULLET (1<<1)
new bool:ma_klase[33];
new const nazwa[] = "Komandos";
new const opis[] = "Natychmiastowe zabicie z noza(PPM)";
new const bronie = 1<<CSW_DEAGLE;
new const zdrowie = 40;
new const kondycja = 60;
new const inteligencja = 5;
new const wytrzymalosc = 0;
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)
new identyfikator[33];
get_user_name(id, identyfikator, 32);
{
ColorChat(id, GREEN, "Milej gry na cs-karolowo !", nazwa);
if(!equal(identyfikator, "") && !equal(identyfikator, ""))
{
client_print(id, print_chat, "[%s] Nie masz uprawnien, aby uzywac tej klasy. Aby kupic pisz GG: 16298787", nazwa)
return COD_STOP;
}
ma_klase[id] = true;
return COD_CONTINUE;
}
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(get_user_weapon(idattacker) == CSW_KNIFE && damagebits & DMG_BULLET && damage > 20.0)
cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
return HAM_IGNORED;
}
Dam +
