22.01.2017, 10:32
anyone know how to add packet loss like ping or fps
new str[350]; GetPlayerNetworkStats(playerid, str, sizeof(str)); new start = strfind(str, "Packetloss", false); strmid(str, str, start + 12, strfind(str, "Messages", false, start) - 2); new Float:packetloss = floatstr(str);
Код:
new str[350]; GetPlayerNetworkStats(playerid, str, sizeof(str)); new start = strfind(str, "Packetloss", false); strmid(str, str, start + 12, strfind(str, "Messages", false, start) - 2); new Float:packetloss = floatstr(str); |