Raised This Month: $51 Target: $400
 12% 

[HELP] Compiling zp classes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
metallicawOw
Veteran Member
Join Date: Jun 2009
Location: Anywhere
Old 06-10-2009 , 20:48   [HELP] Compiling zp classes
Reply With Quote #1

Hola! - Hi!

Bueno yo soy argentino , pero como es un foro yankee voy a postear en espaņiol y en ingles .

ENGLISH:

Well I am from Argentina , but this is a yankee forum , so I will post in Espanish and in English .

---------------------------------------------------------------------------------------------------------

PROBLEMA - PROBLEM:

Siempre compile mi plugin de clases de zombie y nunca tube problemas , de un dia para el otro compilo y me tira error el plugin.

ENGLISH:

Always I Compile my zombie classes plugin and never have problems , but one day I compile the plugin and i have an error.





CODIGO DEL PLUGIN - CODE OF PLUGIN:


/*============================================ ====================================

-----------------------------------
-*- [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, Classic Zombie).

============================================= ===================================*/

#include <amxmodx>
#include <fakemeta>
#include <zombieplague>

/*============================================ ====================================
[Plugin Customization]
============================================= ====================================*/

// Classic Zombie Attributes
new const zclass1_name[] = { "Zombie" }
new const zclass1_info[] = { "Balanceado" }
new const zclass1_model[] = { "zpmwzombie" }
new const zclass1_clawmodel[] = { "necrofago.mdl" }
const zclass1_health = 900
const zclass1_speed = 225
const Float:zclass1_gravity = 1.0
const Float:zclass1_knockback = 1.0

// Raptor Zombie Attributes
new const zclass2_name[] = { "Raptor" }
new const zclass2_info[] = { "Muy Rapido" }
new const zclass2_model[] = { "zpmwzombie" }
new const zclass2_clawmodel[] = { "necrofago.mdl" }
const zclass2_health = 1000
const zclass2_speed = 400
const Float:zclass2_gravity = 1.0
const Float:zclass2_knockback = 1.5

// Poison Zombie Attributes
new const zclass3_name[] = { "Poison" }
new const zclass3_info[] = { "Tiene Mas Gravity" }
new const zclass3_model[] = { "zpmwzombie" }
new const zclass3_clawmodel[] = { "necrofago.mdl" }
const zclass3_health = 1400
const zclass3_speed = 225
const Float:zclass3_gravity = 0.35
const Float:zclass3_knockback = 1.25

// Big Zombie Attributes
new const zclass4_name[] = { "Bommer" }
new const zclass4_info[] = { "Mucha Vida" }
new const zclass4_model[] = { "zpmwzombie" }
new const zclass4_clawmodel[] = { "necrofago.mdl" }
const zclass4_health = 1800
const zclass4_speed = 180
const Float:zclass4_gravity = 1.0
const Float:zclass4_knockback = 0.5

// Leech Zombie Attributes
new const zclass5_name[] = { "Leech" }
new const zclass5_info[] = { "200 HP Por Infeccion" }
new const zclass5_model[] = { "zpmwzombie" }
new const zclass5_clawmodel[] = { "necrofago.mdl" }
const zclass5_health = 1300
const zclass5_speed = 225
const Float:zclass5_gravity = 1.0
const Float:zclass5_knockback = 1.25
const zclass5_infecthp = 200 // 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))
}


POR FAVOR AYUDENME - PLEASE HELP ME


__________________

metallicawOw is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 06-11-2009 , 10:14   Re: [HELP] Compiling zp classes
Reply With Quote #2

[EN]
Compiles fine

[ES]
Compila bien...si queres postear en espaņol...postea aca: http://forums.alliedmods.net/forumdisplay.php?f=10
__________________
alan_el_more is offline
metallicawOw
Veteran Member
Join Date: Jun 2009
Location: Anywhere
Old 06-11-2009 , 18:51   Re: [HELP] Compiling zp classes
Reply With Quote #3

[ES]
no no compilla , aborta la compilacion fijate bien en la imagen u.u

[EN]
no the plugin dosnt compile fine , look in the picture ; the compile.exe aborts de compile.
__________________

metallicawOw is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 06-12-2009 , 23:57   Re: [HELP] Compiling zp classes
Reply With Quote #4

-ES-
El plugin se compila perfectamente , intenta con amxmodstudio
Una recomendacion , siempre que tengas que poner un codigo , ponelo entre php y /php

-EN-
The plugin compiles perfectly, try amxmodstudio
A recommendation if you need to put a code between php and Make /php
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode