FCNPC
FCNPC copied to clipboard
Default ping value
Default ping value is -1, this should be 0 if it's possible.
Why? NPCs don't have ping right? Why assign them a possible value?
When I use /rcon players, I get this:
1 to 5 are standard NPCs, 6 is me, and 46 to 49 are FCNPCs. Notice the that the IP is different as well, not that it really bothers anyone I think though.
I still don't see the problem.... I hope I'm not getting on your nerves
Me neither, however I can think of something like this:
new ping = GetPlayerPing(playerid);
if(ping < 0 || ping == 65535) {
//Ping is invalid
} else {
//Ping is valid
}
0ms is possible and actually highly likely in some configurations and high end machines. -1 is impossible ping so i guess it should stay -1.
But in any case its easy to hook and return 0 in pawn instead of -1 ....
Done.