17.07.2016, 15:03
Quote:
If you don't want to have it in the code (Maybe you're creating an include or something), you need to check if it's defined before forwarding it.
Код:
#if defined OnPlayerKilledPlayer forward OnPlayerKilledPlayer(playerid, deathid); #endif |
Quote:
CallLocalFunction
You're directly calling a callback which doesn't exist, so normally compiler raises an error. Using CallLocalFunction is slow, but it wouldn't raise an error if the callback doesn't exist. |
Nothing change about the forward placement, that's why when you declare a public function, usually, you put the forward before.