16.04.2011, 20:16
Well I made a textdraw that displays your fps and it only show it for a quick second then it goes back to 0 and it keeps doing that. I don't know whats wrong.
Код:
new Text:FPS; FPS = TextDrawCreate(497.000000, 163.000000, "FPS:"); TextDrawBackgroundColor(FPS, 255); TextDrawFont(FPS, 3); TextDrawLetterSize(FPS, 0.500000, 1.000000); TextDrawColor(FPS, -65281); TextDrawSetOutline(FPS, 0); TextDrawSetProportional(FPS, 1); TextDrawSetShadow(FPS, 1); public OnPlayerUpdate(playerid) { new string[128]; new fps; fps = GetPlayerFPS(playerid); format(string, sizeof string, "FPS: %d", fps); TextDrawSetString(FPS, string); return 1; }