Packet Loss detecter
#9

pawn Код:
new str[350];
GetPlayerNetworkStats(0, str, 350);
new start = strfind(str, "Packetloss", false);
strmid(str, str, start + 12, strfind(str, "Messages", false, start) - 2);
new Float:packetloss = floatstr(str);
No testing on your own=no learning but ok.
This should do it. Dont know what values packetloss will have, either 0-100 or 0.0-1.0 i guess.
Reply


Messages In This Thread
Packet Loss detecter - by S1avaK - 10.07.2012, 23:34
Re: Packet Loss detecter - by S1avaK - 10.07.2012, 23:46
Re: Packet Loss detecter - by Mauzen - 10.07.2012, 23:53
Re: Packet Loss detecter - by S1avaK - 10.07.2012, 23:57
Re: Packet Loss detecter - by coole210 - 11.07.2012, 00:03
Re: Packet Loss detecter - by S1avaK - 11.07.2012, 00:22
Re: Packet Loss detecter - by Mauzen - 11.07.2012, 10:52
Re: Packet Loss detecter - by 2191penna2191 - 11.07.2012, 13:34
Re: Packet Loss detecter - by Mauzen - 11.07.2012, 17:50
Re: Packet Loss detecter - by 2191penna2191 - 12.07.2012, 06:39

Forum Jump:


Users browsing this thread: 1 Guest(s)