Simple question about NetStats PacketLossPercent
#1

Why in the example on the wiki: https://sampwiki.blast.hk/wiki/NetStats_PacketLossPercent

Do they have it so it displays .2f percent. What is the point of the .2 in this particular situation? In game, the command just displays 0.00 meaning I'm fully synced, hence the reason I don't understand what the .2 is doing.
Reply
#2

Mean, it will only display 2 digits number after the .
Reply
#3

It's not related to the network functions, it's related to format. To build upon the above post, a number after (to the right of) the dot specifies the amount of decimal digits to show, while a number before (to the left of) the dot specifies the padding to be given.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)