OnPlayerConnect doesn't call - 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 doesn't call (
/showthread.php?tid=290550)
OnPlayerConnect doesn't call -
Lorenc_ - 16.10.2011
Fixed!
Stupid progress bar :S Can't use it now D:
Re: OnPlayerConnect doesn't call - [L3th4l] - 16.10.2011
Can you at least post that callback here? Try "debugging" that callback. Is any function "Hanging" the rest of the callback? I would either try the Performance profiler or the Crash Detect plugins to check what's going on under that callback.
Re: OnPlayerConnect doesn't call -
Lightning[SV] - 16.10.2011
I assume you tested it by adding a print line at the top of onplayerconnect so all the code in that callback is fine.
It could be the code in some include you are using if any of them have onplayerconnect in.
Re: OnPlayerConnect doesn't call -
Lorenc_ - 16.10.2011
Quote:
Originally Posted by [L3th4l]
Can you at least post that callback here? Try "debugging" that callback. Is any function "Hanging" the rest of the callback? I would either try the Performance profiler or the Crash Detect plugins to check what's going on under that callback.
|
Well, I've loaded crashdetect and I don't see any debug file anywhere. Do have to start it in my gamemodes init?
It neither hasn't printed in my server.log so :O It's not working, damn I wish there was a how to setup tutorial for that plugin :S
Код:
[09:08:10] Server Plugins
[09:08:10] --------------
[09:08:10] Loading plugin: crashdetect.so
[09:08:10] Failed (plugins/crashdetect.so: undefined symbol: _ZGVZN9SingletonI13AmxNameFinderE11GetInstanceEvE8instance)
[09:08:10] Loading plugin: sscanf.so
[09:08:10]
Very strange shit here :S
@Lightning[SV]
Well I highly doubt that:
pawn Код:
#include <foreach>
#include <sscanf2>
#include <irc>
#include <mapandreas>
#include <streamer>
#include <OPSP>
#include <zcmd>
#include <a_mysql>
#include <YSI/y_va>
#include <progress>
Re: OnPlayerConnect doesn't call -
Jason_Thunde - 16.10.2011
Try check in the Includes if there Exists any OnPlayerConnect.
Re: OnPlayerConnect doesn't call -
Lorenc_ - 16.10.2011
Quote:
Originally Posted by Jason_Thunde
Try check in the Includes if there Exists any OnPlayerConnect.
|
OnPlayerShootPlayer only contains something... However, like said before. It shouldn't be the problem.
Version: 5.0, I'll check for any updates now.
pawn Код:
// OnPlayerConnect
public OnPlayerConnect(playerid)
{
RL_Shooting[playerid]=false;
RL_Released[playerid]=0;
return (RL_OPC)?CallLocalFunction("RL_OnPlayerConnect","i",playerid):1;
}
#if defined _ALS_OnPlayerConnect
#undef OnPlayerConnect
#else
#define _ALS_OnPlayerConnect
#endif
#define OnPlayerConnect RL_OnPlayerConnect
forward RL_OnPlayerConnect(playerid);
EDIT:
Код:
gamemodes\CoD2.amx: During execution of RL_OnPlayerConnect:
gamemodes\CoD2.amx: Run time error 5: "Invalid memory access".
Could this be OnPlayerShootPlayer?