Problem z kompilacją
Raketen
02.01.2010
Witam otóż przerobiłem trochę klasy zombie i to wszystko i nie mogę skompilować pliku:
/*================================================================================ ----------------------------------- -*- [ZP] Default Zombie Classes -*- ----------------------------------- ~~~~~~~~~~~~~~~ - Description - ~~~~~~~~~~~~~~~ This plugin adds the default zombie classes to Zombie Plague. Feel free to modify their attributes to your liking. Note: If zombie classes are disabled, the first registered class will be used for all players (by default, Szybkie Zombie). ================================================================================*/ #include <amxmodx> #include <fakemeta> #include <zombieplague> /*================================================================================ [Plugin Customization] =================================================================================*/ // Classic Zombie Attributes new const zclass1_name[] = { "Szybkie Zombie" } new const zclass1_info[] = { "Zycie++ Szybkosc++ Odrzut+++" } new const zclass1_model[] = { "zombie_source" } new const zclass1_clawmodel[] = { "v_knife_zombie.mdl" } const zclass1_health = 2800 const zclass1_speed = 270 const Float:zclass1_gravity = 1.0 const Float:zclass1_knockback = 1.50 // Raptor Zombie Attributes new const zclass2_name[] = { "Twardziel Zombie" } new const zclass2_info[] = { "Zycie+++ Speed- Odrzut--" } new const zclass2_model[] = { "zombie_source" } new const zclass2_clawmodel[] = { "v_knife_zombie.mdl" } const zclass2_health = 4000 const zclass2_speed = 155 const Float:zclass2_gravity = 1.1 const Float:zclass2_knockback = 0.3 // Poison Zombie Attributes new const zclass3_name[] = { "Tight Zombie" } new const zclass3_info[] = { "HP++ Jump+ Odrzut+" } new const zclass3_model[] = { "zombie_source" } new const zclass3_clawmodel[] = { "v_knife_zombie.mdl" } const zclass3_health = 2400 const zclass3_speed = 200 const Float:zclass3_gravity = 0.68 const Float:zclass3_knockback = 1.2 // Big Zombie Attributes new const zclass4_name[] = { "Cerberus Zombie" } new const zclass4_info[] = { "HP-- Speed++ Knockback+" } new const zclass4_model[] = { "zombie_source" } new const zclass4_clawmodel[] = { "v_knife_zombie.mdl" } const zclass4_health = 1200 const zclass4_speed = 300 const Float:zclass4_gravity = 1.0 const Float:zclass4_knockback = 1.2 // Leech Zombie Attributes new const zclass5_name[] = { "Headcrab Zombie" } new const zclass5_info[] = { "HP-- Speed++ Knockback+" } new const zclass5_model[] = { "zombie_source" } new const zclass5_clawmodel[] = { "v_knife_zombie.mdl" } const zclass5_health = 500 const zclass5_speed = 25 const Float:zclass5_gravity = 0.48 const Float:zclass5_knockback = 0.89 const zclass5_infecthp = 100 // extra hp for infections /*============================================================================*/ // Class IDs new g_zclass_leech // Zombie Classes MUST be registered on plugin_precache public plugin_precache() { register_plugin("[ZP] Default Zombie Classes", "4.3", "MeRcyLeZZ") // Register all classes zp_register_zombie_class(zclass1_name, zclass1_info, zclass1_model, zclass1_clawmodel, zclass1_health, zclass1_speed, zclass1_gravity, zclass1_knockback) zp_register_zombie_class(zclass2_name, zclass2_info, zclass2_model, zclass2_clawmodel, zclass2_health, zclass2_speed, zclass2_gravity, zclass2_knockback) zp_register_zombie_class(zclass3_name, zclass3_info, zclass3_model, zclass3_clawmodel, zclass3_health, zclass3_speed, zclass3_gravity, zclass3_knockback) zp_register_zombie_class(zclass4_name, zclass4_info, zclass4_model, zclass4_clawmodel, zclass4_health, zclass4_speed, zclass4_gravity, zclass4_knockback) g_zclass_leech = zp_register_zombie_class(zclass5_name, zclass5_info, zclass5_model, zclass5_clawmodel, zclass5_health, zclass5_speed, zclass5_gravity, zclass5_knockback) } // User Infected forward public zp_user_infected_post(id, infector) { // If attacker is a leech zombie, gets extra hp if (zp_get_user_zombie_class(infector) == g_zclass_leech) set_pev(infector, pev_health, float(pev(infector, pev_health) + zclass5_infecthp)) }
Raketen
02.01.2010
Co mają pliki includes do kompilacji plika sma? ;s
@down
zawsze jak kompilowałem to wpisywałem tylko kod sma i się elegancko robiło
błąd:
Użytkownik Raketen edytował ten post 02.01.2010 19:47
@down
zawsze jak kompilowałem to wpisywałem tylko kod sma i się elegancko robiło
błąd:
Your plugin failed to compile! Read the errors below: Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team /home/groups/amxmodx/tmp3/phpWp7IJ2.sma(21) : fatal error 100: cannot read from file: "zombieplague" Compilation aborted. 1 Error.
Użytkownik Raketen edytował ten post 02.01.2010 19:47
mgr inż. Pavulon
02.01.2010
Co mają pliki includes do kompilacji plika sma? ;s
To że są do nich wymagane ?
Pokaż jaki masz błąd.
Raketen
02.01.2010
zawsze jak kompilowałem to wpisywałem tylko kod sma i się elegancko robiło
błąd:
Napisałem jeszcze raz bo możliwe że kolega nie widział że mu odpisałem ;s
błąd:
Your plugin failed to compile! Read the errors below: Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team /home/groups/amxmodx/tmp3/phpWp7IJ2.sma(21) : fatal error 100: cannot read from file: "zombieplague" Compilation aborted. 1 Error.
Napisałem jeszcze raz bo możliwe że kolega nie widział że mu odpisałem ;s
Raketen
02.01.2010
No tak, fajnie ze powiedziałeś ze cos tam includes tylko co ja mam kurde zrobić omg-.-
Ortega
02.01.2010
Do folderu /includes/ [czyli w tym folderze gdzie jest compile.exe i amxxpc.exe (? jakoś tak )] wrzucasz plik .inc od zombie, który jest standardowo w paczce jak się nie mylę. Później normalnie już się skompiluje. Oczywiście kompilacja lokalna
Użytkownik Ortega edytował ten post 02.01.2010 20:04
Użytkownik Ortega edytował ten post 02.01.2010 20:04
mgr inż. Pavulon
02.01.2010
DODAJ PLIK zombieplague.inc DO scripting/includes/
Możesz to skompilować TYLKO LOKALNIE
Możesz to skompilować TYLKO LOKALNIE
Raketen
02.01.2010
Ale ja kompiluje tutaj zawsze Nieoficjalny polski support AMX Mod X -> Kompilator możecie podać link do jakiegoś kompilatora