Mam błąd w konsoli związany z klasą.
Błąd:
L 04/17/2011 - 18:00:44: Info (map "de_rats_1337") (file "addons/amxmodx/logs/error_20110417.log") L 04/17/2011 - 18:00:44: Function "DeathMsg" was not found L 04/17/2011 - 18:00:44: [AMXX] Displaying debug trace (plugin "codclassp_janek.amxx") L 04/17/2011 - 18:00:44: [AMXX] Run time error 19: function not found L 04/17/2011 - 18:00:44: [AMXX] [0] Untitled.sma::plugin_init (line 23).sma klasy
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <codmod> #include <fakemeta> #include <colorchat> new const nazwa[] = "Janek[PREMIUM]"; new const opis[] = "Duzo HP, 4 bronie, 3 pistolety, i 1 Granat 'HE'"; new const bronie = 1<<CSW_FAMAS | 1<<CSW_AK47 | 1<<CSW_M4A1 | 1<<CSW_AWP | 1<<CSW_USP | 1<<CSW_DEAGLE | 1<<CSW_GLOCK18 | CSW_HEGRENADE new const zdrowie = 60; new const kondycja = -5; new const inteligencja = 0; new const wytrzymalosc = 5; public plugin_init() { register_plugin(nazwa, "1.0", "QTM_Peyote"); cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc); register_forward(FM_CmdStart, "CmdStart"); register_event("DeathMsg", "DeathMsg", "ade"); } public cod_class_enabled(id) { if(!(get_user_flags(id) & ADMIN_LEVEL_D)) { ColorChat(id, GREEN, "[Janek] Nie masz uprawnien, aby uzywac tej klasy.") ColorChat(id, RED, "[Janek] Nie masz uprawnien, aby uzywac tej klasy.") return COD_STOP; } }