03/15/2012 - 20:39:37: [AMXX] Run time error 10: native error (native "get_weaponname") L 03/15/2012 - 20:39:37: [AMXX] [0] dd_429096.sma::eventCurWeapon (line 44) L 03/15/2012 - 20:39:37: Invalid weapon id 0 L 03/15/2012 - 20:39:37: [AMXX] Displaying debug trace (plugin "codclass_strzelec.amxx") L 03/15/2012 - 20:39:37: [AMXX] Run time error 10: native error (native "get_weaponname") L 03/15/2012 - 20:39:37: [AMXX] [0] dd_429096.sma::eventCurWeapon (line 44) L 03/15/2012 - 20:39:42: Invalid weapon id 255 L 03/15/2012 - 20:39:42: [AMXX] Displaying debug trace (plugin "codclass_strzelec.amxx") L 03/15/2012 - 20:39:42: [AMXX] Run time error 10: native error (native "get_weaponname") L 03/15/2012 - 20:39:42: [AMXX] [0] dd_429096.sma::eventCurWeapon (line 44) L 03/15/2012 - 20:40:09: Invalid weapon id 0 L 03/15/2012 - 20:40:09: [AMXX] Displaying debug trace (plugin "codclass_strzelec.amxx") L 03/15/2012 - 20:40:09: [AMXX] Run time error 10: native error (native "get_weaponname") L 03/15/2012 - 20:40:09: [AMXX] [0] dd_429096.sma::eventCurWeapon (line 44) L 03/15/2012 - 20:40:14: Invalid weapon id 0 L 03/15/2012 - 20:40:14: [AMXX] Displaying debug trace (plugin "codclass_strzelec.amxx") L 03/15/2012 - 20:40:14: [AMXX] Run time error 10: native error (native "get_weaponname") L 03/15/2012 - 20:40:14: [AMXX] [0] dd_429096.sma::eventCurWeapon (line 44) L 03/15/2012 - 20:40:38
SMA klasy
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <fakemeta_util> #include <hamsandwich> #include <fun> #include <codmod> new bool:ma_klase[33]; new const nazwa[] = "Strzelec"; new const opis[] = "Strzela szybciej o 2%"; new const bronie = 1<<CSW_M4A1; new const zdrowie = 20; new const kondycja = 15; new const inteligencja = 0; new const wytrzymalosc = 40; public plugin_init() { register_plugin(nazwa, "1.0", "manipers"); cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc); register_event("CurWeapon","eventCurWeapon", "b") } public cod_class_enabled(id) ma_klase[id] = true; public cod_class_disabled(id) ma_klase[id] = false; public eventCurWeapon(id) { if(!ma_klase[id]) return PLUGIN_CONTINUE static Float:fSpeedMultiplier = 0.98; new szWeaponName[64]; get_weaponname(read_data(2), szWeaponName, 63) new iEnt = fm_find_ent_by_owner(-1, szWeaponName, id) set_pdata_float( iEnt, 46, ( get_pdata_float(iEnt, 46, 4) * fSpeedMultiplier), 4 ); set_pdata_float( iEnt, 47, ( get_pdata_float(iEnt, 47, 4) * fSpeedMultiplier), 4 ); return PLUGIN_CONTINUE }
Wyjaśni mi ktoś co tu jest źle ??