01.03.2014, 07:48
I tried this code in OnPlayerDisconnect:
And it always output:
Is there a chance to fix it?
pawn Код:
printf("Connected time: %dms", NetStats_GetConnectedTime(playerid));
printf("MSG Reveived: %d", NetStats_MessagesReceived(playerid));
printf("Messages Sent: %d", NetStats_MessagesSent(playerid));
printf("Bytes Sent:%d", NetStats_BytesSent(playerid));
printf("Messages per second: %d", NetStats_MessagesRecvPerSecond(playerid));
printf("Packet Loss: %f", NetStats_PacketLossPercent(playerid));
printf("Connection status: %d", NetStats_ConnectionStatus(playerid));
Код:
[09:48:18] Connected time: 0ms [09:48:18] MSG Reveived: 0 [09:48:18] Messages Sent: 0 [09:48:18] Bytes Sent:0 [09:48:18] Messages per second: 0 [09:48:18] Packet Loss: 0.000000 [09:48:18] Connection status: -1 [09:48:18] [part] QuaTTrO has left the server (0:1)