Jako, że jestem trochę zielony w amxx to dodaje:
C:\Users\Kuba\Favorites\Desktop\compiler\Snajper.sma(23) : error 088: number of arguments does not match definitione
#include <codmod>
#include <hamsandwich>
new const opis[] = "1/2 szansy na natychmiastowe zabicie z AWP";
new const bronie = 1<<CSW_DEAGLE | 1<<CSW_AWP;
new const zdrowie = 20;
new const kondycja = 25;
new const inteligencja = 0;
new const wytrzymalosc = 20;
{
register_plugin(nazwa, "1.0", "QTM_Peyote");
cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc, frakcja);
RegisterHam(Ham_TakeDamage, "player", "TakeDamage");
}
ma_klase[id] = true;
ma_klase[id] = false;
{
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_AWP && damage > 20.0 && random_num(1,2) == 1)
cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
}
return HAM_IGNORED;
}
Proszę również o wyjaśnienie w czym był problem