05.03.2016, 00:52
You aren't handling returns in those hooked callbacks. This will output warnings if used in includes.
Should be:
pawn Код:
public OnObjectMoved(objectid) {
#if defined mylib_OnObjectMoved
mylib_OnObjectMoved(objectid);
#endif
}
pawn Код:
public OnObjectMoved(objectid)
{
#if defined mylib_OnObjectMoved
return mylib_OnObjectMoved(objectid);
#else
return 1;
#endif
}