dimanche 17 juillet 2016

Implent a function?

Hi'
I'm here to ask you, how to implent a function ? I've the error 004

Code:

error 004: function "OnPlayerKilledPlayer" is not implemented
I know what this mean, I've just to write

PHP Code:

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 Code:

#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.

Let's block ads! (Why?)



Implent a function?

Aucun commentaire:

Enregistrer un commentaire