SA-MP Forums Archive
OnPlayerTakeDamage - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerTakeDamage (/showthread.php?tid=514256)



OnPlayerTakeDamage - mirou123 - 20.05.2014

For some reason OnPlayerTakeDamage always returns 1 for the bodypart. It used to work perfectly but it doesn't anymore...All I have in that callback is a format and a SendClientMessage for debugging. Is it my script or a new SAMP bug maybe?


Re: OnPlayerTakeDamage - Jay_Dixon - 20.05.2014

Quote:
Originally Posted by mirou123
Посмотреть сообщение
For some reason OnPlayerTakeDamage always returns 1 for the bodypart. It used to work perfectly but it doesn't anymore...All I have in that callback is a format and a SendClientMessage for debugging. Is it my script or a new SAMP bug maybe?
And you expect us to guess your script I take it? Posting the issue where it is would be nice =3


Re : OnPlayerTakeDamage - mirou123 - 20.05.2014

Are you fucking kidding me? -_- I told you I don't have anything in that callback. What am I supposed to post? Either be nice or don't reply on my topics. I didn't force you to answer. Oh, and stop stealing ******' quotes. It's everywhere that its not even funny anymore.


Re: OnPlayerTakeDamage - Faisal_khan - 20.05.2014

Uh make sure you are defining the body parts IDs.
More info - https://sampwiki.blast.hk/wiki/Body_Parts


Re : OnPlayerTakeDamage - mirou123 - 20.05.2014

They are already defined in fixes.inc which I'm using. But thanks anyway. +rep'ed


Re: OnPlayerTakeDamage - ball - 20.05.2014

Try run your script without fixes.inc


Re : OnPlayerTakeDamage - mirou123 - 20.05.2014

fixes.inc is made to fix some common SAMP bugs so I doubt it will cause any problems. However I removed it but I still got the same problem.


Re : OnPlayerTakeDamage - mirou123 - 20.05.2014

Sorry for double posting but the YSI library is causing it. I made a blank script and placed the includes I'm using and started testing each include and the ones that are affacting OnPlayerTakeDamage are YSI/y_ini and YSI/y_commands. Am I the only one having this problem? and how can I fix it?

EDIT: Never mind I fixed it. Not sure how but I did