Implent a function?
#1

Hi'
I'm here to ask you, how to implent a function ? I've the error 004
Код:
error 004: function "OnPlayerKilledPlayer" is not implemented
I know what this mean, I've just to write
PHP код:
OnPlayerKilledPlayer(playeriddeathid)
{
    
// Codee..
    
return 1;

But this is not the purpose here. I'm looking for implementing a function without creating it like showed before.
Code:
PHP код:
#include <a_samp>
public OnPlayerDeath(playeridkilleridreason)
{
    
#if defined OnPlayerKilledPlayer
        
if(killerid != INVALID_PLAYER_IDOnPlayerKilledPlayer(playeridreason);
    
#endif
    
return 1;
}
forward OnPlayerKilledPlayer(playeriddeathid); 
Thanks for helping.
NB: This is only optimization.
Reply


Messages In This Thread
Implent a function? - by Dayrion - 17.07.2016, 14:41
Re: Implent a function? - by Stinged - 17.07.2016, 14:50
Re: Implent a function? - by iKarim - 17.07.2016, 14:51
Re: Implent a function? - by TheMallard - 17.07.2016, 14:51
Re: Implent a function? - by Dayrion - 17.07.2016, 15:03
Re: Implent a function? - by Misiur - 17.07.2016, 15:39
Re: Implent a function? - by Dayrion - 17.07.2016, 16:02
Re: Implent a function? - by Mauzen - 17.07.2016, 18:36

Forum Jump:


Users browsing this thread: 3 Guest(s)