#1

PHP код:
C:\Users\Kevin11\Desktop\Server\gamemodes\RCRP.pwn(17707) : error 025: function heading differs from prototype 
Script of error:
PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
    
Hud(playerid);
    
/* COLPITO SUL TORACE */
    
new Float:armatura;
    
GetPlayerArmour(playeridarmatura); 
I did not want to add all the correct script
Reply
#2

The bodypart parameter was only added in 0.3z. Make sure the version you're using isn't older.
Reply
#3

How can I fix
Reply
#4

Hi!

Look in this file a_samp (/pawno/includes/a_samp) wheather the forward OnPlayerTakeDamage row is the same as this:
PHP код:
forward OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart); 
When not you can replace this.

Also you can update your script to the latest version.
(https://www.sa-mp.com/download.php)
Reply
#5

I updated don't go
Reply
#6

Keep in mind that if any include hooks the callback (OnPlayerGiveDamage as well) it will give the error. The most common issue was with YSI library but that depends on your includes.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)