0.3z - OnPlayerTakeDamage(...., bodypart)
#1

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

you should try to define the "Bodypart"
Reply
#3

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

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

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

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

try to update all of the includes
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)