C# SAMP Query mechanism (Response packet) [Question]?
#2

In Query class:
Код:
public int Recieve()
        {
            try
            {
                _count = 0;

                EndPoint endpoint = new IPEndPoint(address, _port);

                byte[] rBuffer = new byte[500];
                qSocket.ReceiveFrom(rBuffer, ref endpoint);
change this line: byte[] rBuffer = new byte[500];

to

Код:
public int Recieve()
        {
            try
            {
                _count = 0;

                EndPoint endpoint = new IPEndPoint(address, _port);

                byte[] rBuffer = new byte[3402];
                qSocket.ReceiveFrom(rBuffer, ref endpoint);
This should be also corrected on sa-mp.wiki too.

EDIT;

I don't know if it will work actually, but buffer with 500 bytes size is not enough to store more than 14 detailed player information with maximum name length - 24.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)