Bodyparts - 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: Bodyparts (
/showthread.php?tid=646744)
Bodyparts -
Davidmkd123 - 22.12.2017
I saw some tutorials in samp wiki but it was the old 0.3z OnPlayerTakeDamage();
I need something to match the same script..like i want to make bodypart hit info.
Re: Bodyparts -
Kwarde - 22.12.2017
I do not see what the problem is?
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
'bodypart' has been ADDED since 0.3z. And I assume you have the latest version? (Or atleast latest stable version, which is 0.3.7-R2 - Which came AFTER 0.3z)
Re: Bodyparts -
rfr - 23.12.2017
OnPlayerTakeDamage still exists
Re: Bodyparts -
Davidmkd123 - 23.12.2017
I know but it shows error with the "bodypart"
Код:
C:\Users\User\Desktop\SARP\gamemodes\sarp.pwn(619) : error 025: function heading differs from prototype
Re: Bodyparts -
Ritzy2K - 23.12.2017
You are probably missing bodypart parameter in your callback.
Код:
(playerid, issuerid, Float:amount, weaponid, bodypart)
Re: Bodyparts -
Davidmkd123 - 23.12.2017
No. Its in.
Re: Bodyparts -
Ritzy2K - 23.12.2017
Post your code then.
Re: Bodyparts -
Abagail - 23.12.2017
Then you're either:
- Using some sort of outdated include.
- Using outdated default SA-MP includes (a_samp....)
Re: Bodyparts -
Davidmkd123 - 23.12.2017
Any code, the problem is in the "bodypart" thing. When i remove it its fixed..but i need to work with it.
btw im working in 0.3.8 a_samp, isn't the problem there?..
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
return 1;
}
Re: Bodyparts -
RogueDrifter - 23.12.2017
Quote:
Originally Posted by Davidmkd123
Any code, the problem is in the "bodypart" thing. When i remove it its fixed..but i need to work with it.
btw im working in 0.3.8 a_samp, isn't the problem there?..
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
return 1;
}
|
Read what Abagail said.