Server crashes after logging in
#1

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.
Reply
#2

did you crate your tables and columns in your DB?
Reply
#3

He said all the debug messages passed.

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

Do you login before or after you go to class selection?
Reply
#5

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

Please show us your login code..
Reply
#7

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.
Reply
#8

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.
Reply
#9

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.
Reply
#10

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)