SA-MP Forums Archive
0.3z - OnPlayerTakeDamage(...., bodypart) - 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: 0.3z - OnPlayerTakeDamage(...., bodypart) (/showthread.php?tid=498834)



0.3z - OnPlayerTakeDamage(...., bodypart) - Kyance - 05.03.2014

If i try adding the " ,bodypart)" thing to the "OnPlayerTakeDamage", i get this error:

Код:
\test2.pwn(6167) : error 025: function heading differs from prototype
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
If i remove the "bodypart", then i get:
Код:
\test2.pwn(6175) : error 017: undefined symbol "bodypart"
Do i need to update the Y_INI etc..?


Re: 0.3z - OnPlayerTakeDamage(...., bodypart) - KaliKs - 05.03.2014

you should try to define the "Bodypart"


Re: 0.3z - OnPlayerTakeDamage(...., bodypart) - Kyance - 05.03.2014

Quote:
Originally Posted by KaliKs
Посмотреть сообщение
you should try to define the "Bodypart"
This?
pawn Код:
#define WEAPON_BODY_PART_CHEST 3
#define WEAPON_BODY_PART_CROTCH 4
#define WEAPON_BODY_PART_LEFT_ARM 5
#define WEAPON_BODY_PART_RIGHT_ARM 6
#define WEAPON_BODY_PART_LEFT_LEG 7
#define WEAPON_BODY_PART_RIGHT_LEG 8
#define WEAPON_BODY_PART_HEAD 9



Re: 0.3z - OnPlayerTakeDamage(...., bodypart) - [XST]O_x - 05.03.2014

...Did you update your server files to the 0.3z ones? The includes folder?


Re: 0.3z - OnPlayerTakeDamage(...., bodypart) - XK - 05.03.2014

you have to update everything in the pawno file for 0.3z ones,then it will work


Re: 0.3z - OnPlayerTakeDamage(...., bodypart) - Kyance - 05.03.2014

Quote:
Originally Posted by [XST]O_x
Посмотреть сообщение
...Did you update your server files to the 0.3z ones? The includes folder?
Quote:
Originally Posted by XK
Посмотреть сообщение
you have to update everything in the pawno file for 0.3z ones,then it will work
Yes i do, all the files are updated.
(Downloaded it 2x..)

But, maybe it's something with the includes? ;d


Re: 0.3z - OnPlayerTakeDamage(...., bodypart) - XK - 05.03.2014

try to update all of the includes


Re: 0.3z - OnPlayerTakeDamage(...., bodypart) - Kyance - 05.03.2014

Quote:
Originally Posted by XK
Посмотреть сообщение
try to update all of the includes
Upgrading Y_INI/YSI worked ;p