Raised This Month: $51 Target: $400
 12% 

ExecuteHamB(Ham_TakeDamage,


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pro_on_0
Member
Join Date: Nov 2008
Old 07-03-2010 , 09:05   ExecuteHamB(Ham_TakeDamage,
Reply With Quote #1

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
pro_on_0 is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 07-03-2010 , 09:09   Re: ExecuteHamB(Ham_TakeDamage,
Reply With Quote #2

Show all the code.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
pro_on_0
Member
Join Date: Nov 2008
Old 07-03-2010 , 09:12   Re: ExecuteHamB(Ham_TakeDamage,
Reply With Quote #3

Quote:
Originally Posted by ot_207 View Post
Show all the code.
But it is a very big file ...
pro_on_0 is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 07-03-2010 , 09:12   Re: ExecuteHamB(Ham_TakeDamage,
Reply With Quote #4

Does not matter. Show it.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-03-2010 , 09:17   Re: ExecuteHamB(Ham_TakeDamage,
Reply With Quote #5

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).
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 07-03-2010, 09:19
pro_on_0
This message has been deleted by pro_on_0.
pro_on_0
Member
Join Date: Nov 2008
Old 07-03-2010 , 09:29   Re: ExecuteHamB(Ham_TakeDamage,
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
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
pro_on_0 is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 07-03-2010 , 09:35   Re: ExecuteHamB(Ham_TakeDamage,
Reply With Quote #7

Shouldnt it be
Code:
ExecuteHam
instead of ExecuteHamB ?
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
pro_on_0
Member
Join Date: Nov 2008
Old 07-04-2010 , 03:39   Re: ExecuteHamB(Ham_TakeDamage,
Reply With Quote #8

Quote:
Originally Posted by NiHiLaNTh View Post
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
pro_on_0 is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 07-04-2010 , 03:59   Re: ExecuteHamB(Ham_TakeDamage,
Reply With Quote #9

I told you to post all the code. If you will not do it then you will not get any help.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
pro_on_0
Member
Join Date: Nov 2008
Old 07-04-2010 , 04:03   Re: ExecuteHamB(Ham_TakeDamage,
Reply With Quote #10

Quote:
Originally Posted by ot_207 View Post
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 View Post
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 is offline
Reply



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 06:31.


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