Hello Guys,Well I Need Your Help In Fix These Error.
And Here Is The Code For 1st Error With Error Line Marked
I Think My 1st Problem Is Due To My Second Problem Therefore Here Is The Code For My 2nd Problem But I Don't Know In Which Line Is The Error But In Error It Says About OnPlayerDeath So Here IS The Code For OnPlayerDeath Of Include
Plzz Guys Help Me
Code:
18:44:39] [debug] #0 00085b58 in public AB_OnPlayerDeath (playerid=2, killerid=65535, reason=255) at C:\Users\ThunderCot\Desktop\Call of Duty Online\gamemodes\cod8aaw.pwn:5464
[18:44:39] [debug] #1 00010ec0 in public FC_OnPlayerDeath (playerid=2, killerid=65535, reason=255) at C:\Users\ThunderCot\Desktop\Call of Duty Online\pawno\include\OPA.inc:131
[18:44:39] [debug] #2 native CallLocalFunction () from sampsvr-port_9909
[18:44:39] [debug] #3 00003218 in public OnPlayerDeath (playerid=2, killerid=65535, reason=255) at C:\Users\ThunderCot\Desktop\Call of Duty Online\pawno\include\fuckCleo.inc:158
Code:
if(StealingPaProt[playerid] == 1)
{
SendClientMessage(playerid, 0x00BFFFAA, "You failed stealing the Pakistan Prototype!");
RemovePlayerMapIcon(playerid,1);
GivePlayerCash(playerid, -500);
StealingPaProt[playerid] = 0;
new pname[24];
GetPlayerName(playerid, pname, 24);
new kk[128];
format(kk, sizeof(kk), "** %s (%d) failed stealing Pakistan Prototype from team %s!",pname,playerid,GetTeamName(playerid));
SendClientMessageToAll(0xC93CCE00,kk);
}
Code:
public OnPlayerDeath(playerid, killerid, reason)
{
s_AirbreakDetectImmunity[playerid] = gettime() + 3;
#if defined AB_OnPlayerDeath
return AB_OnPlayerDeath(playerid, killerid, reason);
#else
return 1;
#endif
}