SA-MP Forums Archive
Players crashing when spawning - 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: Players crashing when spawning (/showthread.php?tid=535811)



Players crashing when spawning - Magic_Time - 06.09.2014

Hi, there's some problem I've been experiencing recently, when a player spawns, not always but sometimes crashes.
I'm not using the default OnPlayerRequestClass, I'm using dialogs inside OnPlayerRequestClass and then I set the team there.
Once a player spawns I check whether some player belongs to team A or team B and then I set the position.

Any ideas of why sometimes players crash when spawning?


Re: Players crashing when spawning - IceCube! - 06.09.2014

Several things.

1: We're not psychic show us code.
2: Run the Crash Detect Plugin, and Native Checker Plugin. Then post your server log here.


Re: Players crashing when spawning - Magic_Time - 06.09.2014

EDIT: I found a glitch, but I fixed the problem. Thanks for the help.


Re: Players crashing when spawning - IceCube! - 06.09.2014

Okay, no problem.

From your code, I can't see a problem with it; unless your problem is nested within your timer.

From experience, I know a lot of people who use GetPlayerTeam have this issue... I don't know if it's a bug or a typo in their code.

If I was you I would start commenting out the code in segments, until the player no longer crashes. This will help you narrow down where the problem occurs.

Sorry I can't help further.


Re: Players crashing when spawning - Magic_Time - 06.09.2014

No problem friend, I already fixed that. Thanks for your help.