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

Solved [ H3LP ] Entity TakeDamage?


Post New Thread Reply   
 
Thread Tools Display Modes
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 05-23-2017 , 17:28   Re: [ H3LP ] Entity TakeDamage?
Reply With Quote #31

Hm Prost, I've tested a dynamic native with is_user_alive() only, and I get a log error, if I use valid_alive don't give any error.

About the other functions/natives/stuffs, ok, I understand now.
__________________









Last edited by CrazY.; 05-23-2017 at 17:29.
CrazY. is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 05-23-2017 , 17:48   Re: [ H3LP ] Entity TakeDamage?
Reply With Quote #32

Quote:
Originally Posted by CrazY. View Post
Hm Prost, I've tested a dynamic native with is_user_alive() only, and I get a log error, if I use valid_alive don't give any error.
Can you show this code?
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 05-23-2017 , 18:14   Re: [ H3LP ] Entity TakeDamage?
Reply With Quote #33

It's from my Aliens vs Predator.

Code:
public native_make_user_alien(id) {     if (!is_user_alive(id))     {         log_error(AMX_ERR_NATIVE, "[AvP] Invalid player id (%d)", id);         return false;     }     alienme(id);     return true; }
__________________









Last edited by CrazY.; 05-23-2017 at 18:24. Reason: Wrong native. xD
CrazY. is offline
DeMNiX
Veteran Member
Join Date: Nov 2011
Location: Russia
Old 05-24-2017 , 07:22   Re: [ H3LP ] Entity TakeDamage?
Reply With Quote #34

becouse u didn't checking player on connection
__________________
My channel with test codes
https://www.youtube.com/user/demnix03

Zombie Riot [Scenario & bots-zombie 11.11.2023]
https://youtu.be/8ZZan-aq2sc
DeMNiX is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 05-24-2017 , 07:48   Re: [ H3LP ] Entity TakeDamage?
Reply With Quote #35

What do you are mean?

is_user_alive automatically check if the player it's connected.
__________________








CrazY. is offline
DeMNiX
Veteran Member
Join Date: Nov 2011
Location: Russia
Old 05-24-2017 , 07:53   Re: [ H3LP ] Entity TakeDamage?
Reply With Quote #36

if didn't use is_user_connected before your function on player - u will get invalid entity

did u make condition on connecting player before make him alien?
__________________
My channel with test codes
https://www.youtube.com/user/demnix03

Zombie Riot [Scenario & bots-zombie 11.11.2023]
https://youtu.be/8ZZan-aq2sc
DeMNiX is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 05-24-2017 , 08:27   Re: [ H3LP ] Entity TakeDamage?
Reply With Quote #37

Mm, I didn't know about that.

The fuction is something like this:

PHP Code:
alienme(id)
{
     
// Execute a attemp forward

     // Execute a pre forward

     // Reset vars

     // bool:Alien is true

No check's.
__________________








CrazY. is offline
DeMNiX
Veteran Member
Join Date: Nov 2011
Location: Russia
Old 05-24-2017 , 08:52   Re: [ H3LP ] Entity TakeDamage?
Reply With Quote #38

show the code where u have a log error

somewhere u make wrong code, becouse original zp doesn't have any trouble with it
may u miss somewhere check on player
__________________
My channel with test codes
https://www.youtube.com/user/demnix03

Zombie Riot [Scenario & bots-zombie 11.11.2023]
https://youtu.be/8ZZan-aq2sc

Last edited by DeMNiX; 05-24-2017 at 08:55.
DeMNiX is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 05-24-2017 , 13:13   Re: [ H3LP ] Entity TakeDamage?
Reply With Quote #39

If I use is_valid_alive don't give log error bro. I've said this..

But ok, I will add the code here.
__________________









Last edited by CrazY.; 05-24-2017 at 13:13.
CrazY. is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 05-24-2017 , 14:54   Re: [ H3LP ] Entity TakeDamage?
Reply With Quote #40

What error do you mean? Can you show it?
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
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 04:01.


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