19.03.2015, 09:31
Please I am compile pwn gamemode Infection and this error
ERROR : infection.pwn(216) : error 025: function heading differs from prototype
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; } |