Problema intalnita (descriere): C:\Users\Gabi\Desktop\virtual\gamemodes\vx-rp.pwn(38165) : error 025: function heading differs from prototypeEro(area / rile) / warning-(ul / urile): Eroarea Error : 025Liniile de cod / sursa / script-ul(obligatoriu): (38165) L-am luat dupa net.
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
{
new string[128], victim[MAX_PLAYER_NAME], attacker[MAX_PLAYER_NAME];
new weaponname[24];
GetPlayerName(playerid, attacker, sizeof (attacker));
GetPlayerName(damagedid, victim, sizeof (victim));
GetWeaponName(weaponid, weaponname, sizeof (weaponname));
foreach(Player, z)
{
if(playerVariables[z][pSpectating] == playerid)
{
format(string, sizeof(string), "%s has made %.0f damage to %s, weapon: %s", attacker, amount, victim, weaponname);
SendClientMessage(z,COLOR_RED, string);
}
}
return 1;
}
Imagini / Video (optional):Ati incercat sa rezolvati singur?: Normal si n-am reusit.