Sziasztok!
Azt szeretném megkérdezni mitöl lehet ez a hiba?
C:\\Users\\schmi\\Desktop\\samp\\asd\\gamemodes\\Holiday.pwn(6560) : warning 235: public function lacks forward declaration (symbol \"OnPlayerWeaponShot\")
C:\\Users\\schmi\\Desktop\\samp\\asd\\gamemodes\\Holiday.pwn(11542) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
itt a kód:
public OnPlayerGiveDamage( playerid, damagedid, Float:amount, weaponid, bodypart )
{
if( weaponid == 0 ) return 0;
if( bodypart == 9 && !IsPlayerInAnyVehicle( damagedid ) ) // HEAD
SetPlayerHealth( damagedid, 0 );
if( bodypart == 7 || bodypart == 8 ) // LEGS
{
new Float:armour;
GetPlayerArmour(damagedid, armour);
if(armour <= 0)
{
new Float:health;
GetPlayerHealth(damagedid,health);
SetPlayerHealth(damagedid, health-10.0);
}
}
if( bodypart == 3 ) // TORSO/CHEST
{
new Float:armour;
GetPlayerArmour(damagedid, armour);
if(armour <= 0)
{
new Float:health;
GetPlayerHealth(damagedid,health);
SetPlayerHealth(damagedid, health-20.0);
}
}
return 1;
}
1 Error.
[mod]PAWN kód beágyazás hozzáadva.[/mod]