netstats_ functions doesn't work in OnPlayerDisconnect.
#1

I tried this code in OnPlayerDisconnect:
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));
And it always output:
Код:
[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)
Is there a chance to fix it?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)