AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   ExecuteHamB(Ham_TakeDamage, (https://forums.alliedmods.net/showthread.php?t=131305)

pro_on_0 07-03-2010 09:05

ExecuteHamB(Ham_TakeDamage,
 
PHP Code:

for (new 05i++)
{
     if (
g_fireattacker[ID_BLOOD][i] > 0)
          
ExecuteHamB(Ham_TakeDamageID_BLOODCSW_HEGRENADEg_fireattacker[ID_BLOOD][i], corr_damageDMG_BURN)


The problem is:
[HAMSANDWICH] Entity has null private data (4)
[AMXX] Run time error 10: native error (native "ExecuteHamB")
[AMXX] [0] test.sma::burning_flame (line 7405)

I have tried to change all parameters,
but it still goes wrong

When I changed CSW_HEGRENADE to CSW_DEAGLE :
[HAMSANDWICH] Entity has null private data (26)

Please help :cry:

ot_207 07-03-2010 09:09

Re: ExecuteHamB(Ham_TakeDamage,
 
Show all the code.

pro_on_0 07-03-2010 09:12

Re: ExecuteHamB(Ham_TakeDamage,
 
Quote:

Originally Posted by ot_207 (Post 1227293)
Show all the code.

But it is a very big file ...

ot_207 07-03-2010 09:12

Re: ExecuteHamB(Ham_TakeDamage,
 
Does not matter. Show it.

ConnorMcLeod 07-03-2010 09:17

Re: ExecuteHamB(Ham_TakeDamage,
 
CSW_HEGRENADE

You can't pass this, you have to pass an entity (attacker if it's from a weapon, grenade entity index if it's a he grenade).

pro_on_0 07-03-2010 09:29

Re: ExecuteHamB(Ham_TakeDamage,
 
Quote:

Originally Posted by ConnorMcLeod (Post 1227301)
CSW_HEGRENADE

You can't pass this, you have to pass an entity (attacker if it's from a weapon, grenade entity index if it's a he grenade).

So how can I create a function that
damage a player and
kill him when his health is lower than certain value ?

Sorry for my poor English :oops:

NiHiLaNTh 07-03-2010 09:35

Re: ExecuteHamB(Ham_TakeDamage,
 
Shouldnt it be
Code:

ExecuteHam
instead of ExecuteHamB ?

pro_on_0 07-04-2010 03:39

Re: ExecuteHamB(Ham_TakeDamage,
 
Quote:

Originally Posted by NiHiLaNTh (Post 1227309)
Shouldnt it be
Code:

ExecuteHam
instead of ExecuteHamB ?

[HAMSANDWICH] Entity has null private data (4)
[AMXX] Run time error 10: native error (native "ExecuteHam")

The same error :(

ot_207 07-04-2010 03:59

Re: ExecuteHamB(Ham_TakeDamage,
 
I told you to post all the code. If you will not do it then you will not get any help.

pro_on_0 07-04-2010 04:03

Re: ExecuteHamB(Ham_TakeDamage,
 
Quote:

Originally Posted by ot_207 (Post 1227948)
I told you to post all the code. If you will not do it then you will not get any help.

Quote:

Originally Posted by ConnorMcLeod (Post 1227301)
CSW_HEGRENADE

You can't pass this, you have to pass an entity (attacker if it's from a weapon, grenade entity index if it's a he grenade).



All times are GMT -4. The time now is 07:06.

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