Bodyparts
#1

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.
Reply
#2

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)
Reply
#3

OnPlayerTakeDamage still exists
Reply
#4

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
Reply
#5

You are probably missing bodypart parameter in your callback.
Код:
(playerid, issuerid, Float:amount, weaponid, bodypart)
Reply
#6

No. Its in.
Reply
#7

Post your code then.
Reply
#8

Then you're either:
  • Using some sort of outdated include.
  • Using outdated default SA-MP includes (a_samp....)
Reply
#9

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;
}
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)