error 025: function heading differs from prototype
#1

help please 1error!!
(0.3z)
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart) <<ERROR 
{
if(bodypart ==  BODY_PART_LEFT_LEG)
{
  if(damagedid != INVALID_PLAYER_ID && IsPlayerConnected(damagedid))
  {
   SendClientMessage(playerid, COLOR_LIGHTRED, "Bal Lбbon lőtted, ezйrt nem tud mozogni!");
   TogglePlayerControllable(damagedid, false);
   SetPlayerDrunkLevel(damagedid, 50000);
   ApplyAnimation(damagedid, "SWEET", "Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0);
   SetPlayerArmedWeapon(damagedid, 0);
   SendClientMessage(damagedid, COLOR_LIGHTRED, "Bal Lбbon lőttek, ezйrt nem bнrsz mozogni!");
  }
}
else if(bodypart == BODY_PART_RIGHT_LEG)
{
 if(damagedid != INVALID_PLAYER_ID && IsPlayerConnected(damagedid))
 {
  SendClientMessage(playerid, COLOR_LIGHTRED, "Jobb lбbon lőtted, ezйrt nem tud mozogni!");
  TogglePlayerControllable(damagedid, false);
  SetPlayerDrunkLevel(damagedid, 50000);
  ApplyAnimation(damagedid, "SWEET", "Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0);
  SetPlayerArmedWeapon(damagedid, 0);
  SendClientMessage(damagedid, COLOR_LIGHTRED, "Jobb Lбbon lőttek, ezйrt nem bнrsz mozogni!");
 }
}
else if(bodypart == BODY_PART_HEAD)
{
 if(damagedid != INVALID_PLAYER_ID && IsPlayerConnected(damagedid))
 {
  SendClientMessage(playerid, COLOR_LIGHTRED, "Fejenlőtted, ezйrt sъlyosan megsйrьlt йs kуrhбzba kerьlt!");
  SendClientMessage(damagedid, COLOR_LIGHTRED, "Fejenlőttek, ezйrt sъlyosan megsйrьltйl!");
  SetPlayerHealth(damagedid,0);
 }
}
return 1;
}
Reply


Messages In This Thread
error 025: function heading differs from prototype - by Slicebook - 24.05.2014, 09:49
Re : error 025: function heading differs from prototype - by S4t3K - 24.05.2014, 09:52
Re: error 025: function heading differs from prototype - by SilentSoul - 24.05.2014, 09:52
Re: error 025: function heading differs from prototype - by Slicebook - 24.05.2014, 09:55

Forum Jump:


Users browsing this thread: 1 Guest(s)