Witam , Mam takie pytanko ?
Czego nie chce mi zkopilować klasę ?
/* Plugin generated by AMXX-Studio */
#include <amxmodx>#include <codmod>#include <hamsandwich>#include <engine>#include <fun>#include <fakemeta>#define DMG_BULLET (1<<1)#define FALL_VELOCITY 350.0new bool:ma_klase[33];new bool:falling[33];new const nazwa[] = "xxx";new const opis[] = "xxx";new const bronie = 1<<CSW_DEAGLE;new const zdrowie = 45;new const kondycja = 120;new const inteligencja = 5;new const wytrzymalosc = 45;public plugin_init(){register_plugin(nazwa, "1.0", "QTM_Peyote");cod_register_advance(cod_get_classid("Elitarny Komandos"), 2400, nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);RegisterHam(Ham_TakeDamage, "player", "TakeDamage");}public cod_class_enabled(id){set_user_footsteps(id, 1);set_rendering(id,kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 40); ///tu zmieniasz stopien niewidzialnoscima_klase[id] = true;}public cod_class_disabled(id){set_user_footsteps(id, 0);set_rendering(id,kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 255);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;}public client_PreThink(id) {if(ma_klase[id] && is_user_alive(id) && is_user_connected(id)){if(entity_get_float(id, EV_FL_flFallVelocity) >= FALL_VELOCITY) {falling[id] = true;}else{falling[id] = false;}}}public client_PostThink(id) {if(ma_klase[id] && is_user_alive(id) && is_user_connected(id)){if(falling[id]) {entity_set_int(id, EV_INT_watertype, -3);}}
Gdy ją Kompiluje to mam error . Nie wiem dlaczego,
codclass_cichyzabujca.sma(82) : error 001: expected token: "}", but found "-end of file-"