04.01.2015, 23:32
Hi, this checks the fps and changes color according to the fps, but when in less than 50 does not siemplemente always green like >= 50
Sorry no speak much english, Thanks!
pawn Код:
if(pFPS[playerid] <= 34) TextDrawSetString(TextdrawPingMFPS[playerid], string); TextDrawColor(TextdrawPingMFPS[playerid], 0xFF0000FF);
if(pFPS[playerid] <= 49) TextDrawSetString(TextdrawPingMFPS[playerid], string); TextDrawColor(TextdrawPingMFPS[playerid], 0xFFFF00FF);
if(pFPS[playerid] >= 50) TextDrawSetString(TextdrawPingMFPS[playerid], string); TextDrawColor(TextdrawPingMFPS[playerid], 0x00FF00FF);