Here's a modified part of my code:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>
public plugin_init(){
RegisterHam(Ham_TakeDamage, "player", "OnPlayerEvent_Damage", 1);
}
public OnPlayerEvent_Damage(victim, cause, attacker, 1.0){
SOME CODE HERE
}
I want the code to execute when AT LEAST 1 damage is taken/given but when I try compiling I get the following error:
<47> : error 010: invalid function or declaration
*Line 47 is where the public function "OnPlayerEvent_Damage" is
I read this and I appear to have followed the function format:
http://www.amxmodx.org/funcwiki.php?go=module&id=24
but I'm getting an error for some odd reason.