To mój 1 post na waszym forum.
Otóż mam problem z kompilacją klasy...
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <codmod>
#include <engine>
#include <hamsandwich>
#include <colorchat>
new const nazwa[] = "Major (Premium)";
new const opis[] = "Slaba widocznosc, D3/AU-1, szansa ntychmiastowego zabicia z noza 1/3";
new const bronie = 1<<CSW_G3SG1;
new const zdrowie = -20;
new const kondycja = 0;
new const inteligencja = 0;
new const wytrzymalosc = 0;
new bool:ma_klase[33];
public plugin_init() {
register_plugin(nazwa, "1.0", "QTM_Peyote");
cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);
register_event("ResetHUD", "ResetHUD", "abe");
RegisterHam(Ham_TakeDamage, "player","TakeDamage");
}
public cod_class_enabled(id)
{
ColorChat(id, RED, "^x04Klasa^x03 %s^x04 By^x01 Cod-Galaxy.ugu.pl", nazwa);
if(!(get_user_flags(id) & ADMIN_LEVEL_D)) //p
{
ColorChat(id, RED, "^x03[%s]^x04 Jest^x03 klasa premium", nazwa)
return COD_STOP;
}
ma_klase[id] = true;
return COD_CONTINUE;
}
{
set_rendering(id,kRenderFxGlowShell,0,0,0 ,kRenderTransAlpha, 50);
entity_set_float(id, EV_FL_gravity, 800.0/800.0);
ma_klase[id] = true;
}
public cod_class_disabled(id)
{
set_rendering(id,kRenderFxGlowShell,0,0,0 ,kRenderTransAlpha, 255);
entity_set_float(id, EV_FL_gravity, 800.0/800.0);
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 && random_num(1,3) == 1)
cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
return HAM_IGNORED;
}
Proszę o pomoc...
Serdecznie dziękuje