Hello! I got problem with power WaveOfDeath
First I will write how did I manage to add it
1#
PHP Code:
#define FALA_SMIERCI 7845
#define OBRAZENIA 5 //Ammount of damage the are given
#define CZAS_OBRAZEN 8 //Time of effect
#define ZASIEG 300 //Range of the Wave
2#
PHP Code:
new ilosc_fal_gracza[33]
new czas_obrazen[33]
3#
PHP Code:
if(player_b_fala[id] > 0) uzyjfale(id)
4#
PHP Code:
public uzyjfale(id)
{
if(!ilosc_fal_gracza[id])
{
client_print(id, print_center, "You dont have WaveOfDeath anymore!");
return PLUGIN_CONTINUE;
}
ilosc_fal_gracza[id]--;
new iOrigin[3];
get_user_origin(id, iOrigin);
message_begin( MSG_BROADCAST, SVC_TEMPENTITY, iOrigin );
write_byte( TE_BEAMCYLINDER );
write_coord( iOrigin[0] );
write_coord( iOrigin[1] );
write_coord( iOrigin[2] );
write_coord( iOrigin[0] );
write_coord( iOrigin[1] + ZASIEG );
write_coord( iOrigin[2] + ZASIEG );
write_short( sprite_white );
write_byte( 0 );
write_byte( 0 );
write_byte( 10 );
write_byte( 120 );
write_byte( 255 );
write_byte( 0 );
write_byte( 0 );
write_byte( 255 );
write_byte( 100 );
write_byte( 4 );
message_end();
new i = -1
new Float:fOrigin[3];
IVecFVec(iOrigin, fOrigin)
while((i = engfunc(EngFunc_FindEntityInSphere, i, fOrigin, ZASIEG.0)) != 0)
{
if (pev_valid(i) && is_user_alive(i) && get_user_team(id) != get_user_team(i)){
czas_obrazen[i] = CZAS_OBRAZEN
new iData[2]
iData[0] = id
iData[1] = i
set_task(1.0, "FalaSmierci_task", _, iData, 2, "a", CZAS_OBRAZEN)
}
}
return PLUGIN_CONTINUE;
}
public FalaSmierci_task(iData[]){
if(!is_user_alive(iData[1]))
return;
Util_Kill(iData[0], iData[1], OBRAZENIA.0)
}
stock Util_Kill(attacker, victim, Float:damage)
{
if(damage < pev(victim, pev_health))
{
ExecuteHam(Ham_TakeDamage, victim, CSW_HEGRENADE, attacker, damage, DMG_BLAST)
} else {
ExecuteHamB(Ham_Killed, victim, attacker, 2)
}
}
So the problem starts here.
In my plugin there is ONLY problem with this Code - After deleting this everything else work like a charm.
I'm giving the WaveofDeath on roundspawn.
I can normally use it, and there is this aura effect [Aura or Wave dunno how to name it]
So.. The wave normally appear, and If enemy is in range of this skill, He should be damaged with the value that are definied.
[If No HP he should die]
But it isn't happening. The enemy is not dying, The enemy is not inflicted with damage.
Here is the error:
PHP Code:
L 10/26/2011 - 00:08:57: [HAMSANDWICH] Entity has null private data (4)
L 10/26/2011 - 00:08:57: [AMXX] Displaying debug trace (plugin "diablo_extreme.amxx")
L 10/26/2011 - 00:08:57: [AMXX] Run time error 10: native error (native "ExecuteHam")
L 10/26/2011 - 00:08:57: [AMXX] [0] diablo_extreme.sma::Util_Kill (line 9097)
L 10/26/2011 - 00:08:57: [AMXX] [1]
THE LINE : 9097 is this LINE:
PHP Code:
ExecuteHam(Ham_TakeDamage, victim, CSW_HEGRENADE, attacker, damage, DMG_BLAST)
Maybe this power is messing up with my DiabloMod or something.
I really don't know.
If there is any way to make it work, please help me

I could upload the whole CODE [18k lines] but It won't be usefull [Written in shitty way + everything is in Polish]