ERRROR
#1

Please I am compile pwn gamemode Infection and this error

ERROR : infection.pwn(216) : error 025: function heading differs from prototype


Quote:

public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart) // 216 line
{
if(GetPlayerTeam(playerid) == TEAM_INFECTED){SetPlayerTeam(damagedid,TEAM_INFECT ED),SpawnPlayer(damagedid),SendClientMessage(playe rid,COLOR_RED,#Infected. Spread the infection to the living.),infected[playerid] = true;}
if(damagedid == TEAM_INFECTED) return SendClientMessage(playerid,COLOR_GREY,"You've tried infecting an infected person. Didnt work.");
return 1;
}

Reply
#2

Well, try to update your SA:MP Includes...

if this doesn't work, look where forward OnPlayerGiveDamage is in the includes and change it
Reply
#3

Update a_samp.inc and YSI(if you have it).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)