Raised This Month: $ Target: $400
 0% 

[Ham Sandwich] Ham_TakeDamage Function


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Infinity
Junior Member
Join Date: Sep 2009
Old 08-11-2012 , 02:04   [Ham Sandwich] Ham_TakeDamage Function
Reply With Quote #1

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(victimcauseattacker1.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.
Infinity is offline
 



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 05:52.


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