SA-MP Forums Archive
OnPlayerDisconnect not being called in GM (y_hooks) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerDisconnect not being called in GM (y_hooks) (/showthread.php?tid=422086)



OnPlayerDisconnect not being called in GM (y_hooks) - MP2 - 12.03.2013

Ever since updating YSI from 0.2 to 3.1 (I know - ) I've had many problems. One of which is that OnPlayerDisconnect isn't being called in my gamemode (I've not tested filterscripts however). I assume it is related to y_hooks. I've PMed ****** about this and am awaiting a reply, but in the meantime perhaps somebody has a clue as to the cause?

Thanks.


Re: OnPlayerDisconnect not being called in GM (y_hooks) - Scrillex - 12.03.2013

Maybe try to use public
pawn Код:
OnPlayerLogout(playerid, uid)
{



Re: OnPlayerDisconnect not being called in GM (y_hooks) - RajatPawar - 12.03.2013

Have you tried using the ALS method so that you can confirm it's YSI and not a fault at yours?


Re: OnPlayerDisconnect not being called in GM (y_hooks) - MP2 - 12.03.2013

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
Have you tried using the ALS method so that you can confirm it's YSI and not a fault at yours?
Using 0.2 - No problem
Using 3.1 - Problem

Result = YSI's fault


Re: OnPlayerDisconnect not being called in GM (y_hooks) - MP2 - 12.03.2013

I only appear to hook OnPlayerDisconnect in two includes, and disabling the hooks in both did not fix the problem (there may be other hooks, I didn't have time to check 100+ includes).

I'm using a few:
y_hooks
y_classes
y_groups
y_utils
y_timers
and possibly others.