SA-MP Forums Archive
OnPlayerTakeDamage bug report - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: OnPlayerTakeDamage bug report (/showthread.php?tid=495354)



OnPlayerTakeDamage bug report - DarkLored - 16.02.2014

There is a bug that some of the scripters get only some of them
me and my friend have a bug that dosent allow us to use body parts when we have the updated server files and we cant use the callback please fix this glitch


Re: OnPlayerTakeDamage bug report - ikey07 - 16.02.2014

have you edited that callback in your gamemode ?


Re: OnPlayerTakeDamage bug report - burnuk - 16.02.2014

it's not a bug... Make sure you used the pawn0 together with the 3z server and Check all your includes maybe one of them is using onplayertakedamage update the callback.


Re: OnPlayerTakeDamage bug report - DarkLored - 17.02.2014

You have to use pawn to script it?
and i have checked a_samp include and it has the bodypart thing it dosent work and i my friend got it too and we both updated


Re: OnPlayerTakeDamage bug report - burnuk - 17.02.2014

not just a_samp include, if you have other includes that you use in your GM check them as well. Then update the onplayertakedamage callback with 0.3z.


Re: OnPlayerTakeDamage bug report - DarkLored - 17.02.2014

All my includes are updated
i cant figure out how this can happen can you please give me the names of the includes that may take effect so i can check whats the problem


Re: OnPlayerTakeDamage bug report - Kane_Phoenix - 18.02.2014

1. overwrite the old includes with the new from http://www.sa-mp.com/download.php
2. edit the callbacks (OnPlayerTakeDamage/OnPlayerGiveDamage) in your script with:

forward OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)

forward OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart);
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)


Re: OnPlayerTakeDamage bug report - DarkLored - 18.02.2014

FIXED

the main problem was based on YSI you could of told me the include