SA-MP Forums Archive
a problem with OnPlayerTakeDamage - 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: a problem with OnPlayerTakeDamage (/showthread.php?tid=563157)



a problem with OnPlayerTakeDamage - Antoniohl - 14.02.2015

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodyparts)
"bodyparts" is the problem i've updated YSI to 3.1zRC4 and RC5 and still shows the same error!, also tried 0.3x lol none is working for me. :@
i have made like he said
Код:
pawno\include\YSI\y_hooks/impl.inc(1755) : error 025: function heading differs from prototype
Код:
pawno\include\YSI\y_hooks/impl.inc(2339) : error 025: function heading differs from prototype



Re: a problem with OnPlayerTakeDamage - Antoniohl - 14.02.2015

Код:
"fatal error 100: cannot read from file: "..\YSI_Internal\y_compilerpass"
you said

Quote:

Code:
The true problem is here:
\YSI/y_ini.inc
Somewhere in your code, or in one of the includes in your code, a file has been included incorrectly. ALL YSI files MUST be included using a backslash, NOT a forward slash. Change:

Code:
#include <YSI/y_ini>

To:

Code:
#include <YSI\y_ini>

Repeat for all other includes done wrong (i.e using "YSI/" not "YSI\").

still the same error :/


Re: a problem with OnPlayerTakeDamage - Antoniohl - 14.02.2015

i'm confused, do i have to change this line like this or keep it or what -_-
Quote:

#include "../YSI_Internal/y_compilerpass"

with this slash "/"? or i have to use "\"


Re: a problem with OnPlayerTakeDamage - Antoniohl - 14.02.2015

i'm going to use RC5, is there a way to make it works?


Re: a problem with OnPlayerTakeDamage - Lordzy - 14.02.2015

It's "bodypart", not "bodyparts".


Re: a problem with OnPlayerTakeDamage - Antoniohl - 14.02.2015

Quote:
Originally Posted by Lordzy
Посмотреть сообщение
It's "bodypart", not "bodyparts".
it shows the same error,


Re: a problem with OnPlayerTakeDamage - Antoniohl - 15.02.2015

i can not find a solution :/
Bump.


Re: a problem with OnPlayerTakeDamage - Antoniohl - 15.02.2015

i have fixed it, thanks -remove-