02.05.2017, 18:58
The client reports the damage. It could be a hack or it could be a connection anomaly. This game uses the UDP protocol which operates on a "best effort" principle by default. There are no checks in place for anything so packets may arrive malformed, out of order, etc. This is fine for streaming where a few malformed packets won't have any noticeable impact on the perceived video or sound but it can't be used to transmit something like a Word document because that could result in garbled text. SA-MP and/or RakNet have implemented some checking on top of the UDP protocol, but I don't think it is entirely watertight.
For example 18 in binary is:
If there is an error and a 1 is transmitted instead of zero you can get
Which is 274. I'm not saying that this is definitely what happened but it could be one explanation.
For example 18 in binary is:
Код:
0000 0000 0001 0010
Код:
0000 0001 0001 0010