OnPlayerConnect Not Being Called - 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: OnPlayerConnect Not Being Called (
/showthread.php?tid=398203)
OnPlayerConnect Not Being Called -
Kyle - 08.12.2012
Title ^^ - I have no clue on why it isn't being called.
There is no errors from crashdetect nor is there detailed pawn log when compiling even though I have -d3 in the pawn.cfg file.
I've added prints to the very first line in OPC and no printing...
Re: OnPlayerConnect Not Being Called -
Vince - 08.12.2012
It's got something to do with return values in other scripts, if I remember correctly. Also check your includes for hooked OnPlayerConnect entries.
Re: OnPlayerConnect Not Being Called -
V_LOPE - 08.12.2012
Show us the code.
EDIT: late :3
Re: OnPlayerConnect Not Being Called -
Kyle - 08.12.2012
Quote:
Originally Posted by Vince
It's got something to do with return values in other scripts, if I remember correctly. Also check your includes for hooked OnPlayerConnect entries.
|
Okay, I've got it to the following includes:
If I find the public OnPlayerConnect - If I add a print in them should they print?
If yes, they don't
Re: OnPlayerConnect Not Being Called -
Kyle - 08.12.2012
I've found the issue from why it's not being called.
I tried a blank gamemode with plugins loaded it doesn't call onplayerconnect.
I also tried the blankmode without plugins and it DOES call.
So far it's turned out to the RouteConnectorPlugin..
Re: OnPlayerConnect Not Being Called - Guest9328472398472 - 08.12.2012
Congratulations