SA-MP Forums Archive
Server crashes after logging in - 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: Server crashes after logging in (/showthread.php?tid=302022)



Server crashes after logging in - iTorran - 06.12.2011

Hi,

I just finished quickly scripting login script, and when i tried logging in, the server crashed.
So i added some debugs to see where it stopped.. the thing is, it didnt stop, it passed all the debugs.
So that must mean that the dialog isnt causing the problem, apart from that, there is no other callbacks or so in the script, ask for any info you may need.


Re: Server crashes after logging in - EleMenTalL - 06.12.2011

did you crate your tables and columns in your DB?


Re: Server crashes after logging in - THE_KNOWN - 07.12.2011

He said all the debug messages passed.

Try the debug messages on OnPlayerSpawn. (Or what ever callbacks are called after logging in)


Re: Server crashes after logging in - Thresholdold - 07.12.2011

Do you login before or after you go to class selection?


Re: Server crashes after logging in - MP2 - 07.12.2011

Try putting prints at the top of every callback. It's likely a missing directory in scriptfiles.


Re: Server crashes after logging in - MdeRooy - 07.12.2011

Please show us your login code..


Re: Server crashes after logging in - MP2 - 07.12.2011

Quote:
Originally Posted by MdeRooy
Посмотреть сообщение
Please show us your login code..
He said it passed all the debug prints, so the problem isn't there.


Re: Server crashes after logging in - MdeRooy - 07.12.2011

Quote:
Originally Posted by MP2
Посмотреть сообщение
He said it passed all the debug prints, so the problem isn't there.
Well if it crashes on logging in, the problem is highly likely there And without code, we will not be able to help him.


Re: Server crashes after logging in - MP2 - 07.12.2011

If it crashed there, the debugs wouldn't be printed, would they? That's the aim of debugging messages, because if the script/server crashes the rest of the prints after the error won't be displayed, so you know that the error is after the last print that was printed, and before the next one that never got printed.

This is detailed more in a tutorial on the SA:MP wiki, here.


Re: Server crashes after logging in - fordawinzz - 07.12.2011

I guess you spawn the player after he logs in, then see in onplayerspawn what's going on

and you say you don't have any callback, so the problem is from onplayerlogin, wtf?