SA-MP Forums Archive
error 004: function "OnPlayerDeath" is not implemented??? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: error 004: function "OnPlayerDeath" is not implemented??? (/showthread.php?tid=277891)



error 004: function "OnPlayerDeath" is not implemented??? - NomNom - 19.08.2011

I don't understand why it is saying... function "OnPlayerDeath" is not implemented.


public OnPlayerDeath(playerid, killerid, reason)
{
Killz[killerid] ++; // The killer value will be increased
Deathz[playerid] ++; // The death value will be increased
return 1;
}


Please help.


Re: error 004: function "OnPlayerDeath" is not implemented??? - Darnell - 19.08.2011

Something is wrong with your enum code. / make sure a_samp is in top of script / update to 0.3.


Re: error 004: function "OnPlayerDeath" is not implemented??? - Bakr - 19.08.2011

Make sure you have properly included the a_samp library into your script.


Re: error 004: function "OnPlayerDeath" is not implemented??? - NomNom - 19.08.2011

But it is


Re: error 004: function "OnPlayerDeath" is not implemented??? - NomNom - 19.08.2011

Fixed it! I just messed up a bracket somewhere else in my script.


Re: error 004: function "OnPlayerDeath" is not implemented??? - sleepysnowflake - 19.08.2011

Missing bracket ?


Re: error 004: function "OnPlayerDeath" is not implemented??? - =WoR=G4M3Ov3r - 19.08.2011

Quote:
Originally Posted by NomNom
Посмотреть сообщение
Fixed it! I just messed up a bracket somewhere else in my script.
Next time use the "Edit" Button to prevent Double post.