SA-MP Forums Archive
One function crashes server - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: One function crashes server (/showthread.php?tid=514422)



One function crashes server - Creax - 21.05.2014

Hi.
When I'm in skin selector my server crashes.
It's problem with TogglePlayerSpectating in OnPlayerRequestClass, but why?
Код:
public OnPlayerRequestClass(playerid,classid)
{
 	TogglePlayerSpectating(playerid, true);
	SetPlayerTime(playerid,22,0);
	return 1;
}



Re: One function crashes server - Luminar - 21.05.2014

Class selection have special camera mode. I think that's why it don't let you spectate.


Re: One function crashes server - Creax - 21.05.2014

I forgot... in windows server all works good.
I have actually all includes and plugins.


Re: One function crashes server - iZN - 21.05.2014

Use crashdetect plugin to see where is the crash coming from.


Re: One function crashes server - Creax - 21.05.2014

./samp03svr: symbol lookup error: plugins/AntiCheat.so: undefined symbol: sampgdk_TogglePlayerSpectating
How to fix it? Anyone can send me good sampgdk?


Re: One function crashes server - Meyokie - 22.05.2014

/rcon and check where is the problem in your server


Re: One function crashes server - Creax - 22.05.2014

Problem is with sampgdk.