[Ham Sandwich] Ham_TakeDamage Function
Here's a modified part of my code:
PHP Code:
<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. |
Re: [Ham Sandwich] Ham_TakeDamage Function
Why do you have a 1.0 in your function declaration? That doesn't even make any sense. You can't have random numbers in a function declaration. You need to follow the forward format for Ham_TakeDamage in ham_const.inc.
|
Re: [Ham Sandwich] Ham_TakeDamage Function
Try this:
Code:
|
Re: [Ham Sandwich] Ham_TakeDamage Function
Quote:
PHP Code:
|
Re: [Ham Sandwich] Ham_TakeDamage Function
Quote:
function(this, idinflictor, idattacker, Float:damage, damagebits) So I thought I would replace the function with: Function(victim, cause, attacker, 1.0, damagebits) |
Re: [Ham Sandwich] Ham_TakeDamage Function
Quote:
|
Re: [Ham Sandwich] Ham_TakeDamage Function
Quote:
PHP Code:
|
Re: [Ham Sandwich] Ham_TakeDamage Function
Quote:
|
Re: [Ham Sandwich] Ham_TakeDamage Function
Quote:
|
Re: [Ham Sandwich] Ham_TakeDamage Function
Quote:
|
| All times are GMT -4. The time now is 05:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.