---
title: "NetStats_BytesReceived | open.mp"
description: "Gets the amount of data (in bytes) that the server has received from the player."
canonical: https://omp.itsneufox.com/bs/docs/scripting/functions/NetStats_BytesReceived
language: bs
---

# 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

```c
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](https://omp.itsneufox.com/bs/docs/scripting/functions/GetPlayerNetworkStats): Dobija mrežne statistike igrača i pohranjuje ih u string.
-   [GetNetworkStats](https://omp.itsneufox.com/bs/docs/scripting/functions/GetNetworkStats): Dobija mrežne statistike servera i sprema ih u string.
-   [NetStats\_GetConnectedTime](https://omp.itsneufox.com/bs/docs/scripting/functions/NetStats_GetConnectedTime): Dobij vrijeme za kojeg je igrač povezan na server.
-   [NetStats\_MessagesReceived](https://omp.itsneufox.com/bs/docs/scripting/functions/NetStats_MessagesReceived): Dohvatite broj mrežnih poruka koje je server primio od igrača.
-   [NetStats\_MessagesSent](https://omp.itsneufox.com/bs/docs/scripting/functions/NetStats_MessagesSent): Dohvatite broj mrežnih poruka koje je server poslao igraču.
-   [NetStats\_BytesSent](https://omp.itsneufox.com/bs/docs/scripting/functions/NetStats_BytesSent): Dohvatite količinu informacija (u bajtovima) koje je poslužitelj poslao uređaju za reprodukciju.
-   [NetStats\_MessagesRecvPerSecond](https://omp.itsneufox.com/bs/docs/scripting/functions/NetStats_MessagesRecvPerSecond): Dohvatite broj mrežnih poruka koje je poslužitelj primio od igrača u posljednjoj sekundi.
-   [NetStats\_PacketLossPercent](https://omp.itsneufox.com/bs/docs/scripting/functions/NetStats_PacketLossPercent): Dobijte packet loss procenat igrača.
-   [NetStats\_ConnectionStatus](https://omp.itsneufox.com/bs/docs/scripting/functions/NetStats_ConnectionStatus): Dohvatite status veze igrača.
-   [NetStats\_GetIpPort](https://omp.itsneufox.com/bs/docs/scripting/functions/NetStats_GetIpPort): Nabavite IP adresu i port igrača.
