Problem with ham take damage
Hi.
I have a problem with ham take damage. whatever i do its dont do the efects to the victim. Also no error log at compiling and at gameplay :S PHP Code:
|
Re: Problem with ham take damage
I see some poor coding there. First explain, in words, what exactly you want to happen when a player takes damage. Then, attach your full code as an attachment.
|
Re: Problem with ham take damage
1 Attachment(s)
soo what i want is when a player hit by an enemy he will stop regenerating his armor and after 5 sec armor regeneration continous.
The basic regeneration works. And player will got only 1 effect regeneration every round. Thanks for the help. |
Re: Problem with ham take damage
1 Attachment(s)
I tried to modify it, but it didn't worked.
PHP Code:
|
Re: Problem with ham take damage
I don't think that this code ever worked. You need to remove the following variable from your code completely so you can do it correctly:
PHP Code:
|
Re: Problem with ham take damage
but if i use it without the ID_REGEN i always got invalid player (65846). Soo basicly i can set up the task first with this:
PHP Code:
PHP Code:
|
Re: Problem with ham take damage
id-TASK_REGENERATION
|
Re: Problem with ham take damage
with this the regeneration works perfect, but hame_take_damage stil not. and no error log :S
PHP Code:
|
Re: Problem with ham take damage
Your Ham_TakeDamage function is done correctly. You need to think logically about what you are doing in your task function.
First of all, you don't need to remove the task in the task function itself since it will only execute once (meaning it's not a repeating task). In your ham function, you added 65840 to the id. Then, you go and add it again . . . The player id is not passed to the task's function. The whole value is passed. So, the "id" in RemoveBlockRegen is that whole value. If the player's actual id is 15, then "id" in that function will have the value of 15+65840. |
Re: Problem with ham take damage
I checked, that whatever i got hit is something hapens to me, but not. Added a simple chat message and it didnt showed. Soo the ham dont work?
just added this line: PHP Code:
|
| All times are GMT -4. The time now is 20:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.