SA-MP Forums Archive
[Help] function heading differs from prototype - 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: [Help] function heading differs from prototype (/showthread.php?tid=521418)



[Help] function heading differs from prototype - Shura - 23.06.2014

Which is not the problem, could you help me? Since the un updating but still includes the error.

Код:
error 025: function heading differs from prototype
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID) // If not self-inflicted
    {
        new
            infoString[128],
            weaponName[24],
            victimName[MAX_PLAYER_NAME],
            attackerName[MAX_PLAYER_NAME];
 
        GetPlayerName(playerid, victimName, sizeof (victimName));
        GetPlayerName(issuerid, attackerName, sizeof (attackerName));
 
        GetWeaponName(weaponid, weaponName, sizeof (weaponName));
 
        format(infoString, sizeof(infoString), "%s has made %.0f damage to %s, weapon: %s", attackerName, amount, victimName, weaponName);
        SendClientMessageToAll(-1, infoString);
    }
    return 1;
}



Re: [Help] function heading differs from prototype - Threshold - 23.06.2014

Try removing the space between 'Float: amount' to make 'Float:amount'.


Respuesta: [Help] function heading differs from prototype - Shura - 23.06.2014

Thanks bro, +rep