NetStats_BytesReceived
Deskripcija
Gets the amount of data (in bytes) that the server has received from the player.
Ime | Deskripcija |
---|---|
playerid | ID igrača za dobiti podatke. |
Returns
This function returns the number of bytes the server has received from the player. 0 is returned if the Igrač nije konektovan.
Primjeri
public OnPlayerCommandText(playerid,cmdtext[])
{
if (!strcmp(cmdtext, "/bytesreceived"))
{
new szString[144];
format(szString, sizeof(szString), "You have sent %i bytes of information to the server.", NetStats_BytesReceived(playerid));
SendClientMessage(playerid, -1, szString);
}
return 1;
}
Srodne Funkcije
- GetPlayerNetworkStats: Dobija mrežne statistike igrača i pohranjuje ih u string.
- GetNetworkStats: Dobija mrežne statistike servera i sprema ih u string.
- NetStats_GetConnectedTime: Dobij vrijeme za kojeg je igrač povezan na server.
- NetStats_MessagesReceived: Dohvatite broj mrežnih poruka koje je server primio od igrača.
- NetStats_MessagesSent: Dohvatite broj mrežnih poruka koje je server poslao igraču.
- NetStats_BytesSent: Dohvatite količinu informacija (u bajtovima) koje je poslužitelj poslao uređaju za reprodukciju.
- NetStats_MessagesRecvPerSecond: Dohvatite broj mrežnih poruka koje je poslužitelj primio od igrača u posljednjoj sekundi.
- NetStats_PacketLossPercent: Dobijte packet loss procenat igrača.
- NetStats_ConnectionStatus: Dohvatite status veze igrača.
- NetStats_GetIpPort: Nabavite IP adresu i port igrača.