20.04.2017, 17:41
Hello,
I'm using this to get player FPS
, but from time to time (some minutes) FPS jumps to 180+ (for one second) and then is normal again. This function is called every second.
What is the problem?
I tried on a empty script and same problem...
I'm using this to get player FPS
Код:
new drunknew = GetPlayerDrunkLevel(playerid), fps[100];
if (drunknew < 100) {
SetPlayerDrunkLevel(playerid, 2000);
} else {
if(playerVariables[playerid][pDrunkLevelLast] != drunknew) {
new wfps = playerVariables[playerid][pDrunkLevelLast] - drunknew;
if ((wfps > 0) && (wfps < 200))
playerVariables[playerid][pFPS] = wfps;
playerVariables[playerid][pDrunkLevelLast] = drunknew;
}
}
What is the problem?
I tried on a empty script and same problem...

