I am working on my new hereo and what i get is this error:
[IMG]http://img90.**************/img90/2401/warcraftsma.png[/IMG]
And this is my Code:
Code:
#include <amxmodx>
#include <superheromod>
new gHeroName[]="Warcraft"
new bool:gHasSuperPower[SH_MAXSLOTS+1]
public_plugin_init () {
register_event("Damage", "Event_damage","b");
register_cvar("Warcraft_mult", "2.0");
register_cvar("Warcraft_level", "8");
}
public Event_damage
if (!shModActive() || !is_user_alive(id)) return PLUGIN_CONTINUE;
new_damage = read_data(2);
new_weapon, bodypart, attacker = get_user_attacker(id, weapon, bodypart)
new_headshot = bodypart == 1 ? 1 : 0
if(attacker <= 0 || attacker > SH_MAXSLOTS ) return PLUGIN_CONTINUE;
if(gHasSuperPower[attacker] && is_user_alive(id)) {
new extraDamage = floatround(damage * get_cvar_float("Warcraft_mult") - damage)
if (extraDamage > 0) {
shExtraDamage( id, attacker, extraDamage, "Super Damage Mult", headshot );
}
}
}