16.12.2014, 07:41
Hi guys. I've noticed that whilst the server calls my OnPlayerDisconnect hook in my include, it doesn't call my OnPlayerDisconnect callback in my main script.
Here is my include:
and in my script:
"hook opd" is printed, but not "script opd". If I remove the hook, "script opd" is printed.
Here is my include:
pawn Код:
#include <YSI\y_hooks>
hook OnPlayerDisconnect(playerid, reason) {
print("hook opd");
return 1;
}
pawn Код:
public OnPlayerDisconnect(playerid, reason) {
print("script opd");
return 1;
}