server freeze
#1

why do my server 'freeze' sometimes?

someone try to join, gets stuck at

SA-MP 0.3c Started
Connecting to IPIPIPIPIPIP
Connected. Joining the game...


and in the log it show this:

Incoming connection: IPIPIPIPIPIP
Incoming connection: IPIPIPIPIPIP
Incoming connection: IPIPIPIPIPIP
Incoming connection: IPIPIPIPIPIP
Incoming connection: IPIPIPIPIPIP


ppls cant join, why can reason for freeze be?

Average CPU: 4%
Reply
#2

What script are you using ?
Reply
#3

my own
Reply
#4

Quote:
Originally Posted by Unknown123
Посмотреть сообщение
my own
Its crashing.. Try using a crashdetect plugin, then check the logs on why its crashing.
Reply
#5

https://sampwiki.blast.hk/wiki/Debugging
Reply
#6

Quote:
Originally Posted by =WoR=G4M3Ov3r
Посмотреть сообщение
Its crashing.. Try using a crashdetect plugin, then check the logs on why its crashing.
No, its not crashing... it just freezes. the players who already have joined before the freeze can play as normal
Reply
#7

Quote:
Originally Posted by Wiki :D
When can debugging be useful?

If a piece of code has an error that causes the runtime of the server to crash (server freeze), ...
Read
Reply
#8

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
Read
should i add like this? on every public? even those forward - public?

pawn Код:
public SomePublic(playerid, something_else)
{
    printf("DEBUG: SomePublic(%i, %i)", playerid, something_else);
    //code
    //code
    //code
    //code
    print("DEBUG: SomePublic finished");
    return 1;
}
Reply
#9

Yes. Like that once he can't connect you check last called callback for that player id.
Reply
#10

Does this happen for every player? Or just a few?

Because they might be using the 0.3d client and trying to join your server. But if it happens for you too then I suggest you get more advice.

Just make sure that the players joining your server are aware that it cannot be used with 0.3d.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)