Raised This Month: $ Target: $400
 0% 

Got a Error plz help!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
glorian
BANNED
Join Date: Mar 2009
Location: Surfplace.se
Old 08-08-2009 , 12:04   Got a Error plz help!
Reply With Quote #1

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 );
    }
        }
}
glorian is offline
Send a message via MSN to glorian
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 18:28.


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