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



OnPlayerTakeDamage - Clavier911 - 17.02.2014

Hello all sorry for my english i have probleme

Код HTML:
C:\Users\Yamaha\Desktop\Counter Strike 0.3z\gamemodes\cs.pwn(1034) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
And


public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)


Re: OnPlayerTakeDamage - Necip - 17.02.2014

Get the latest server 0.3z version.


Re: OnPlayerTakeDamage - [FAT]Klabauter[LST] - 17.02.2014

If you're using YSI, do all this unfortunately...
https://sampforum.blast.hk/showthread.php?tid=488198


Re : OnPlayerTakeDamage - Clavier911 - 17.02.2014

I really not understand how to do this?


forward OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart);

I have erreur


Re: OnPlayerTakeDamage - DeStunter - 17.02.2014

you don't have to forward the function because its a default function in SAMP. Update your SAMP includes to the new 0.3z files and try to compile again.


Re : OnPlayerTakeDamage - Clavier911 - 17.02.2014

My pawn is 0.3z in what I have to 0.3z?

Function when I set FS no error but after doing my error of